:root {
  --ink: #173b35;
  --mint: #d9f78d;
  --cream: #f7f4ec;
  --paper: #fffef9;
  --muted: #667b75;
  --line: rgba(23, 59, 53, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
}
a { color: inherit; }
.legal-header {
  width: min(1080px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font: 800 24px/1 "Manrope", sans-serif;
}
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.legal-header-actions { display: flex; align-items: center; gap: 16px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--ink); }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
}
.lang-switch button.is-active {
  background: var(--ink);
  color: white;
}
.legal-hero {
  padding: 76px 20px 70px;
  color: white;
  background: var(--ink);
  text-align: center;
}
.legal-hero small { color: var(--mint); font-weight: 800; letter-spacing: 1.5px; }
.legal-hero h1 {
  margin: 16px 0 12px;
  font: 800 clamp(38px, 6vw, 60px)/1.05 "Manrope", sans-serif;
  letter-spacing: -.045em;
}
.legal-hero p { margin: 0; color: #a8bab5; }
.legal-layout {
  width: min(1080px, calc(100% - 40px));
  margin: 55px auto 90px;
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: 55px;
  justify-content: center;
}
.legal-nav {
  position: sticky;
  top: 25px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.55);
}
.legal-nav strong { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: .8px; }
.legal-nav a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 12px; }
.legal-nav a:hover { color: var(--ink); }
.legal-content {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(23,59,53,.05);
}
.legal-content section { scroll-margin-top: 25px; margin-bottom: 42px; }
.legal-content section:last-child { margin-bottom: 0; }
.legal-content h2 { margin: 0 0 14px; font: 800 23px "Manrope", sans-serif; letter-spacing: -.03em; }
.legal-content h3 { margin: 24px 0 8px; font: 700 16px "Manrope", sans-serif; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 14px; line-height: 1.75; }
.legal-content .meta-line {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 13px;
  background: #eef4df;
  color: var(--ink);
  line-height: 1.7;
}
.legal-content .meta-line a { color: var(--ink); }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--ink); font-weight: 700; }
.notice { padding: 18px; border-radius: 13px; background: #eef4df; }
.support-card {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.support-card h3 { margin-top: 0; }
.support-card p:last-child { margin-bottom: 0; }
.legal-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.legal-footer span { margin-right: auto; }
.legal-footer a { text-decoration: none; }

@media (max-width: 760px) {
  .legal-hero { padding: 58px 20px; }
  .legal-layout { grid-template-columns: 1fr; margin-top: 30px; gap: 20px; }
  .legal-nav { position: static; }
  .legal-content { padding: 27px 22px; }
  .legal-footer { flex-wrap: wrap; }
  .legal-footer span { width: 100%; }
  .legal-header-actions { gap: 10px; }
  .back-link { font-size: 12px; }
}
