/* ============================================
   AROMATHERAPY RECIPES — Legal Page Styles
   Privacy Policy & Terms of Service
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sage: #2D8A4E;
  --sage-dark: #236B3D;
  --sage-light: #3DA863;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --ink: #1A1A1A;
  --ink-light: #4A4A4A;
  --ink-muted: #7A7A7A;
  --white: #FFFDF9;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
  --max-width: 1400px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background-color 0.4s var(--ease-out-expo),
              backdrop-filter 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background-color: rgba(250, 247, 242, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(45, 138, 78, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-badge {
  display: block;
  height: 32px;
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
}

.nav-badge svg {
  height: 32px;
  width: auto;
  display: block;
}

.nav-badge:hover {
  opacity: 0.85;
}

.nav-badge:active {
  transform: scale(0.96);
}

/* --- LEGAL CONTENT --- */
.legal {
  padding: 8rem 2rem 4rem;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(45, 138, 78, 0.1);
}

.legal-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.legal-updated {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.legal-intro {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 2.5rem;
}

/* Sections */
.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.legal-section p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.legal-section p strong {
  font-weight: 500;
  color: var(--ink);
}

/* Lists */
.legal-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 0.375rem;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--sage);
  opacity: 0.5;
}

/* Table */
.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 138, 78, 0.1);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage-dark);
  background-color: rgba(45, 138, 78, 0.06);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(45, 138, 78, 0.1);
}

.legal-table td {
  padding: 0.75rem 1rem;
  color: var(--ink-light);
  font-weight: 300;
  line-height: 1.5;
  border-bottom: 1px solid rgba(45, 138, 78, 0.06);
  vertical-align: top;
}

.legal-table td strong {
  font-weight: 500;
  color: var(--ink);
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

/* Disclaimer box */
.legal-disclaimer {
  background-color: rgba(45, 138, 78, 0.05);
  border-left: 3px solid var(--sage);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}

.legal-disclaimer p {
  margin-bottom: 0;
  font-weight: 400;
  color: var(--ink-light);
}

/* Links */
.legal-section a,
.legal-cross-link a {
  color: var(--sage);
  font-weight: 400;
  transition: color 0.2s ease;
}

.legal-section a:hover,
.legal-cross-link a:hover {
  color: var(--sage-dark);
}

/* Contact */
.legal-contact {
  font-size: 0.9375rem;
  color: var(--ink-light);
}

.legal-contact a {
  color: var(--sage);
  font-weight: 500;
}

/* Cross-link & back-to-top */
.legal-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(45, 138, 78, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-cross-link {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sage);
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--sage-dark);
}

.back-to-top svg {
  width: 14px;
  height: 14px;
}

/* --- FOOTER --- */
.footer {
  background-color: #143D24;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.6);
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .legal {
    padding: 6rem 1.5rem 3rem;
  }

  .legal-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 1rem 1rem;
  }

  .nav-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .nav-logo span {
    font-size: 0.95rem;
  }

  .nav-badge svg {
    height: 24px;
  }

  .nav-badges {
    gap: 0.25rem;
  }

  .legal {
    padding: 5.5rem 1rem 2rem;
  }

  .legal-table {
    font-size: 0.8125rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.625rem 0.75rem;
  }
}
