:root {
  color-scheme: light;
  --ink: #10203a;
  --muted: #5f6f85;
  --line: #dfe7ef;
  --surface: #ffffff;
  --surface-soft: #f6fafb;
  --brand: #0f9f9a;
  --brand-dark: #087f7b;
  --brand-soft: #e7f8f6;
  --navy: #0f1d35;
  --warning: #fff8e7;
  --warning-line: #f2d695;
  --shadow: 0 18px 50px rgba(20, 43, 74, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6f9fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background:
  radial-gradient(circle at 85% 0%, rgba(25, 196, 185, 0.12), transparent 30rem),
  linear-gradient(180deg, #fbfdff 0, #f5f8fb 45%, #f8fafc 100%); }
a { color: inherit; }
button, input { font: inherit; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(219, 229, 238, 0.88);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.legal-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #11b7ad, #087f7b);
  box-shadow: 0 10px 22px rgba(15, 159, 154, 0.22);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font-size: 17px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-link, .language-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 13px;
  text-decoration: none;
  color: #41516a;
  font-size: 14px;
  font-weight: 700;
}
.header-link:hover, .language-link:hover { background: #f0f5f8; color: var(--ink); }
.language-switch { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.language-link { min-height: 32px; padding: 0 11px; }
.language-link.active { color: white; background: var(--navy); }

.legal-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 72px; }
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fffe 62%, #e7f8f6 100%);
  box-shadow: var(--shadow);
}
.legal-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -100px;
  top: -110px;
  border: 45px solid rgba(15, 159, 154, 0.08);
}
.eyebrow { margin: 0 0 14px; color: var(--brand-dark); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h1 { position: relative; z-index: 1; margin: 0; max-width: 780px; font-size: clamp(38px, 6vw, 66px); line-height: 1.02; letter-spacing: -0.055em; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.meta-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #cfe5e3; border-radius: 999px; background: rgba(255,255,255,.82); color: #365263; font-size: 13px; font-weight: 700; }
.meta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; margin-top: 28px; align-items: start; }
.legal-toc { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 12px 32px rgba(20,43,74,.05); }
.legal-toc strong { display: block; margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #738197; }
.legal-toc a { display: block; padding: 9px 10px; border-radius: 9px; color: #4f6075; text-decoration: none; font-size: 14px; line-height: 1.35; }
.legal-toc a:hover { color: var(--brand-dark); background: var(--brand-soft); }

.legal-content { display: grid; gap: 16px; }
.legal-card { scroll-margin-top: 100px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 36px rgba(20,43,74,.045); }
.section-heading { display: flex; align-items: flex-start; gap: 14px; }
.section-number { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; font-weight: 900; }
.legal-card h2 { margin: 3px 0 15px; font-size: 22px; letter-spacing: -0.025em; }
.legal-card h3 { margin: 22px 0 8px; font-size: 16px; }
.legal-card p, .legal-card li { color: #526277; line-height: 1.8; }
.legal-card p { margin: 0 0 13px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { margin: 10px 0 0; padding-left: 20px; }
.legal-card li + li { margin-top: 6px; }
.legal-card a { color: var(--brand-dark); font-weight: 750; }

.legal-callout { padding: 20px 22px; border: 1px solid #cde7e4; border-radius: 16px; background: linear-gradient(135deg, #f8fffe, var(--brand-soft)); color: #3d5968; line-height: 1.7; }
.legal-callout strong { color: var(--ink); }
.legal-callout.warning { border-color: var(--warning-line); background: var(--warning); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.contact-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.contact-card span, .contact-card strong { display: block; }
.contact-card span { margin-bottom: 6px; color: #7b8798; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.contact-card strong { font-size: 15px; }

.faq-hero { text-align: center; }
.faq-hero h1, .faq-hero .hero-copy { margin-left: auto; margin-right: auto; }
.faq-search-wrap { position: relative; z-index: 2; max-width: 720px; margin: 28px auto 0; }
.faq-search {
  width: 100%;
  min-height: 56px;
  padding: 0 52px 0 48px;
  border: 1px solid #cfe0e8;
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  font-size: 16px;
  box-shadow: 0 14px 36px rgba(20,43,74,.08);
}
.faq-search:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,159,154,.12), 0 14px 36px rgba(20,43,74,.08); }
.search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #738197; }
.search-count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #8390a1; font-size: 12px; font-weight: 750; }

.faq-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.summary-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.92); text-align: left; }
.summary-card strong { display: block; margin-bottom: 6px; }
.summary-card span { color: var(--muted); font-size: 14px; line-height: 1.55; }

.faq-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 26px; margin-top: 28px; align-items: start; }
.faq-categories { position: sticky; top: 96px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.category-link { display: block; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: #526277; font-size: 14px; font-weight: 700; }
.category-link:hover { color: var(--brand-dark); background: var(--brand-soft); }
.faq-groups { display: grid; gap: 24px; }
.faq-group { scroll-margin-top: 100px; }
.faq-group-title { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.02em; }
.faq-list { display: grid; gap: 10px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(20,43,74,.035); }
.faq-item[open] { border-color: #b8dedb; box-shadow: 0 14px 34px rgba(15,159,154,.08); }
.faq-question { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; color: var(--ink); font-size: 16px; font-weight: 800; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #eff5f7; color: var(--brand-dark); font-size: 20px; font-weight: 500; }
.faq-item[open] .faq-question::after { content: "−"; background: var(--brand-soft); }
.faq-answer { padding: 0 22px 22px; color: #536378; line-height: 1.75; }
.faq-answer p { margin: 0; }
.faq-answer ul { margin: 10px 0 0; padding-left: 20px; }
.faq-empty { display: none; padding: 34px; border: 1px dashed #cbd8e3; border-radius: 16px; color: #6d7b8e; text-align: center; background: rgba(255,255,255,.65); }
.faq-empty.visible { display: block; }

.legal-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 42px; border-top: 1px solid var(--line); color: #6a788b; font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--brand-dark); }

@media (max-width: 900px) {
  .legal-layout, .faq-layout { grid-template-columns: 1fr; }
  .legal-toc, .faq-categories { position: static; }
  .legal-toc { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .legal-toc strong { grid-column: 1 / -1; }
  .faq-categories { display: flex; overflow-x: auto; }
  .category-link { white-space: nowrap; }
  .faq-summary { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .legal-header-inner, .legal-shell, .legal-footer { width: min(100% - 24px, 1180px); }
  .legal-header-inner { min-height: 64px; }
  .brand-name { display: none; }
  .header-link { display: none; }
  .legal-shell { padding-top: 28px; }
  .legal-hero { padding: 30px 22px; border-radius: 22px; }
  .legal-hero h1 { font-size: 38px; }
  .hero-copy { font-size: 16px; }
  .legal-card { padding: 22px 19px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc strong { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-question { padding: 18px; }
  .faq-answer { padding: 0 18px 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
