/* ── Same design system as index.html ── */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;500;600&family=Lexend:wght@400;500;600&display=swap');

:root {
  --teal: #0A7EA4;
  --teal-dark: #075E7A;
  --teal-light: #E6F4F9;
  --teal-mid: #C8E8F2;
  --amber: #F5A623;
  --amber-dark: #D4891A;
  --ink: #151515;
  --ink-soft: #3A3A3A;
  --muted: #717171;
  --base: #F9F7F4;
  --white: #FFFFFF;
  --border: #E3DDD5;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 8px rgba(21, 21, 21, 0.07);
  --shadow: 0 6px 28px rgba(21, 21, 21, 0.10);
  --trans: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Karla', sans-serif;
  color: var(--ink);
  background: var(--base);
  line-height: 1.75
}

h1,
h2,
h3,
h4 {
  font-family: 'Lexend', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em
}

a {
  color: var(--teal);
  text-decoration: underline
}

a:hover {
  color: var(--amber-dark)
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft)
}

ul,
ol {
  padding-left: 20px
}

ul li,
ol li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--ink-soft)
}

/* ── Nav (same as index) ── */
#topnav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.nav-logo-img .logo-placeholder {
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white)
}

.nav-logo-text {
  font-family: 'Lexend', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink)
}

.nav-logo-text span {
  color: var(--amber)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none
}

.nav-links a {
  font-family: 'Lexend', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s
}

.nav-links a:hover {
  color: var(--teal)
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Lexend', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1.5px solid transparent;
  transition: var(--trans);
  text-decoration: none;
  cursor: pointer
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber)
}

.btn-amber:hover {
  background: var(--amber-dark);
  color: var(--white);
  text-decoration: none
}

/* ── Page header ── */
.page-hero {
  background: var(--ink);
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero .label {
  font-family: 'Lexend', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 10px
}

.page-hero .meta {
  font-family: 'Karla', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb-nav-icon svg{
  width: 10px;
  height: 10px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  vertical-align: middle;
}

.breadcrumb .wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted)
}

.breadcrumb a {
  color: var(--teal);
  text-decoration: none
}

.breadcrumb a:hover {
  color: var(--amber);
}

/* ── Layout ── */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px
}

.legal-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px
}

/* ── Table of contents ── */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 52px 0 44px;
}

.toc-title {
  font-family: 'Lexend', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px
}

.toc ol {
  padding-left: 18px;
  margin: 0
}

.toc li {
  margin-bottom: 7px
}

.toc a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s
}

.toc a:hover {
  color: var(--teal);
  text-decoration: underline
}

/* ── Content ── */
.legal-content {
  padding: 0 0 96px
}

.legal-section {
  margin-bottom: 52px
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin: 22px 0 8px
}

.legal-section p {
  margin-bottom: 14px
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--amber);
  margin: 14px 0 28px
}

.legal-nav-para {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legal-nav-anchor {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: color 0.2s
}

.legal-nav-anchor svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.legal-nav-para span svg {
  width: 12px;
  height: 12px;
  stroke: var(--teal);
}

.legal-nav-anchor:hover {
  color: var(--amber);
}

/* ── Callout boxes ── */
.callout {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  border: 1px solid
}

.callout p {
  margin: 0;
  font-size: 0.92rem
}

.callout-info {
  background: var(--teal-light);
  border-color: var(--teal-mid)
}

.callout-warn {
  background: #FEF3DC;
  border-color: #F5D690
}

.callout-note {
  background: #FFF0F0;
  border-color: #F5BEBE
}

/* ── Footer ── */
#footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 32px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px
}

.footer-brand-text {
  font-family: 'Lexend', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
  text-decoration: none
}

.footer-brand-text span {
  color: var(--amber)
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.4);
  max-width: 260px
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  text-decoration: none
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.5);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.footer-social a:hover {
  border-color: var(--amber);
  background: rgba(245, 166, 35, 0.1)
}

.footer-social a:hover svg {
  stroke: var(--amber)
}

.footer-col h4 {
  font-family: 'Lexend', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px
}

.footer-col ul {
  list-style: none;
  padding: 0
}

.footer-col ul li {
  margin-bottom: 8px
}

.footer-col ul a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s
}

.footer-col ul a:hover {
  color: var(--amber)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28)
}

.footer-links {
  display: flex;
  gap: 18px
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  transition: color 0.2s
}

.footer-links a:hover {
  color: var(--amber)
}

/* ── Scroll to top ── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: var(--trans);
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0)
}

#scroll-top:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white)
}

#scroll-top svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ── Responsive ── */
@media(max-width:768px) {
  #topnav {
    padding: 0 20px
  }

  .nav-links {
    display: none
  }

  .page-hero {
    padding: 52px 0 40px
  }

  .toc {
    padding: 20px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }

  .footer-brand {
    grid-column: 1/3
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  .legal-nav-anchor {
    font-size: 0.75rem;
  }
  
  .legal-nav-para svg{
    width: 10px;
    height: 10px;
  }
}

@media(max-width:480px) {
  .footer-grid {
    grid-template-columns: 1fr
  }

  .footer-brand {
    grid-column: auto
  }

  .legal-nav-anchor {
    font-size: 0.75rem;
  }
  
  .legal-nav-para svg{
    width: 10px;
    height: 10px;
  }
}