:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: #101827;
  --surface-2: #162133;
  --text: #f5f7fa;
  --muted: #aab4c4;
  --border: rgba(255, 255, 255, 0.12);
  --teal: #42d5c7;
  --peach: #f0ad9e;
  --purple: #9b8bc4;
  --max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 2%, rgba(66, 213, 199, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(155, 139, 196, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: #7ce8de; }
a:focus-visible, select:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4.5rem;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  margin-inline-end: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple) 58%, var(--peach));
  color: #071014;
  font-family: Georgia, serif;
  font-weight: 800;
}
.brand-copy { display: grid; line-height: 1.05; }
.wordmark { font-size: 0.94rem; font-weight: 800; letter-spacing: 0.18em; }
.tagline { margin-top: 0.28rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.04em; }
.tabs { display: flex; gap: 0.25rem; }
.tab {
  padding: 0.52rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.tab[aria-current="page"] {
  color: var(--text);
  background: rgba(66, 213, 199, 0.13);
  box-shadow: inset 0 0 0 1px rgba(66, 213, 199, 0.28);
}
.language-control { display: flex; align-items: center; gap: 0.5rem; }
.language-control label { color: var(--muted); font-size: 0.78rem; }
select {
  min-height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

main {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}
.hero { max-width: 50rem; margin-bottom: 2.4rem; }
.badge {
  display: inline-flex;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(240, 173, 158, 0.25);
  border-radius: 999px;
  background: rgba(240, 173, 158, 0.09);
  color: var(--peach);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
h1 {
  margin: 1rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 7vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.lead { color: #cbd3df; font-size: clamp(1.04rem, 2vw, 1.18rem); }
.updated { color: var(--muted); font-size: 0.86rem; }
.layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 6rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(16, 24, 39, 0.72);
}
.toc h2 { margin: 0 0 0.65rem; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.toc ol { margin: 0; padding-inline-start: 1.3rem; }
.toc a { color: #dbe1ea; font-size: 0.86rem; text-decoration: none; }
.toc a:hover { color: var(--teal); }
.sections { display: grid; gap: 1rem; }
.legal-section {
  scroll-margin-top: 6rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(22, 33, 51, 0.92), rgba(13, 20, 33, 0.92));
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.16);
}
.section-heading { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.8rem; }
.section-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  background: rgba(66, 213, 199, 0.11);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}
.legal-section h2 { margin: 0; font-size: 1.22rem; line-height: 1.3; }
.legal-section p { margin: 0.7rem 0 0; color: #cbd3df; }
.legal-section ul { margin: 0.7rem 0 0; padding-inline-start: 1.25rem; color: #cbd3df; }
.legal-section li + li { margin-top: 0.55rem; }
.document-link {
  margin-top: 1rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(66, 213, 199, 0.25);
  border-radius: 1rem;
  background: rgba(66, 213, 199, 0.07);
}
.document-link a { font-weight: 750; }
footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

[dir="rtl"] .brand { margin-inline-end: auto; }
[dir="rtl"] select { padding: 0.45rem 0.7rem 0.45rem 2rem; }

@media (max-width: 760px) {
  .header-inner { min-height: auto; padding: 0.75rem 0; flex-wrap: wrap; gap: 0.65rem; }
  .brand { flex: 1 1 auto; }
  .tagline { display: none; }
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; text-align: center; }
  .language-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  select { max-width: 8.5rem; }
  main { padding-top: 2.6rem; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
