/* ==========================================================================
   Sổ Giặt Là — Legal pages (Privacy / Terms)
   ========================================================================== */

:root {
  --brand: #00ab55;
  --brand-dark: #008f47;
  --brand-light: #06d973;
  --brand-50: #e6f7ee;
  --brand-100: #c2eed7;
  --brand-soft: #f0fbf6;

  --ink: #0e1f17;
  --ink-2: #2a3e34;
  --muted: #5a6a62;
  --line: #e6ecea;
  --bg: #ffffff;
  --bg-soft: #f6faf8;
  --bg-dark: #0d1f17;

  --shadow-sm: 0 2px 8px rgba(0, 60, 30, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 80, 40, 0.08);

  --radius: 16px;
  --radius-lg: 24px;

  --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; font-weight: 500; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

.legal-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.legal-nav .legal-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.legal-brand:hover { color: var(--brand); text-decoration: none; }
.legal-brand img { width: 36px; height: 36px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--brand-100);
}
.legal-back:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  text-decoration: none;
}
.legal-back svg { width: 16px; height: 16px; }

/* Page */
.legal-page { padding: 56px 0 80px; }

.legal-hero {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(0, 171, 85, 0.15);
}
.legal-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Section */
.legal-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 88px;
}
.legal-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}
.legal-section h2 .num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 171, 85, 0.25);
}
.legal-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.legal-section p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-section em { font-style: italic; color: var(--brand-dark); }

.legal-section ul {
  margin: 8px 0 12px;
  padding-left: 0;
  list-style: none;
}
.legal-section ul li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--ink-2);
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-50);
}

/* Numbered steps (text-only) */
.legal-steps-text {
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-steps-text li {
  background: var(--brand-soft);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--ink-2);
}
.legal-steps-text li strong { color: var(--brand-dark); margin-right: 4px; }

/* Two-column options */
.legal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.legal-option {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.legal-option:hover {
  border-color: var(--brand-100);
  transform: translateY(-2px);
}
.legal-option h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--brand-dark);
}
.legal-option h3::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.legal-option p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-effective {
  margin-top: 24px;
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.legal-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  font-size: 14px;
}
.legal-footer .legal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-footer p { margin: 0; }
.legal-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.legal-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.legal-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 640px) {
  .legal-page { padding: 40px 0 60px; }
  .legal-hero { margin-bottom: 32px; padding-bottom: 28px; }
  .legal-section { padding: 24px 22px; }
  .legal-section h2 { font-size: 19px; }
  .legal-options { grid-template-columns: 1fr; }
  .legal-footer .legal-container { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
