:root {
  --bg: #f7faf7;
  --paper: #fffefb;
  --text: #0b1723;
  --muted: #60707d;
  --line: rgba(13, 32, 43, 0.1);
  --green: #0b8d72;
  --green-dark: #08725f;
  --mint: #e8f6ef;
  --blue: #2a72d8;
  --blue-soft: #edf4ff;
  --shadow: 0 18px 52px rgba(13, 32, 43, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #eef8f3 0, var(--bg) 420px, #fff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.legal-actions,
.language-switch,
.legal-footer-links { display: flex; align-items: center; }

.brand { gap: 9px; font-size: 18px; font-weight: 900; white-space: nowrap; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.legal-actions { gap: 8px; }

.home-link {
  display: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-switch {
  gap: 2px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.language-switch button {
  min-width: 42px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.language-switch button.active { background: var(--text); color: #fff; }

.legal-hero {
  display: grid;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 20px 34px;
}

.legal-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.legal-hero-copy { display: grid; gap: 14px; }
.legal-hero h1 { max-width: 760px; font-size: 42px; line-height: 1.06; font-weight: 950; }
.legal-hero .lead { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.updated { color: var(--muted); font-size: 13px; font-weight: 700; }

.summary-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.summary-strip article { min-height: 96px; padding: 17px; background: rgba(255, 255, 255, 0.96); }
.summary-strip strong { display: block; font-size: 15px; }
.summary-strip span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.legal-shell {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 72px;
}

.toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}
.toc::-webkit-scrollbar { display: none; }
.toc a {
  flex: none;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.toc a:hover { border-color: rgba(11, 141, 114, 0.35); color: var(--green-dark); }

.legal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.legal-section { padding: 26px 20px; scroll-margin-top: 88px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); }
.legal-section h2 { font-size: 23px; line-height: 1.2; font-weight: 920; }
.legal-section h3 { margin-top: 22px; font-size: 16px; line-height: 1.35; }
.legal-section p { margin-top: 12px; color: #40515f; }
.legal-section ul { margin: 12px 0 0; padding-left: 20px; color: #40515f; }
.legal-section li + li { margin-top: 7px; }
.legal-section a { color: var(--green-dark); font-weight: 800; }

.note {
  margin-top: 16px;
  border-left: 3px solid var(--green);
  padding: 13px 15px;
  background: var(--mint);
  color: #294c43;
  font-size: 14px;
}

.support-grid { display: grid; gap: 12px; margin-top: 18px; }
.support-card {
  display: grid;
  gap: 7px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.support-card:nth-child(2n) { background: var(--blue-soft); }
.support-card b { color: var(--green); font-size: 12px; }
.support-card strong { font-size: 17px; }
.support-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.contact-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b8d72, #176fa9);
  color: #fff;
}
.contact-panel p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.contact-panel a {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.legal-footer {
  display: grid;
  gap: 14px;
  padding: 28px 20px 36px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.legal-footer p { color: var(--muted); font-size: 14px; }
.legal-footer-links { flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 800; }
.legal-footer-links a[aria-current="page"] { color: var(--green-dark); }

[data-lang-panel] { display: none; }
[data-lang-panel].active { display: block; }

@media (min-width: 720px) {
  .legal-topbar { padding: 0 48px; }
  .home-link { display: inline-flex; }
  .legal-hero { padding: 72px 48px 42px; }
  .legal-hero h1 { font-size: 58px; }
  .summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legal-shell { grid-template-columns: 220px minmax(0, 1fr); padding: 10px 48px 88px; }
  .toc { position: sticky; top: 92px; display: grid; align-self: start; overflow: visible; }
  .toc a { border-radius: 6px; white-space: normal; }
  .legal-section { padding: 34px 38px; }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-footer { grid-template-columns: auto minmax(160px, 1fr) auto; align-items: center; padding: 34px 48px; }
}

@media (min-width: 1120px) {
  .legal-topbar { padding: 0 72px; }
  .legal-hero { padding-left: 0; padding-right: 0; }
  .legal-shell { padding-left: 0; padding-right: 0; }
  .support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
