:root {
  --page: #080c0f;
  --surface: #10171c;
  --surface-2: #151f25;
  --text: #f0f4f8;
  --muted: #aebbc5;
  --border: #2a3942;
  --cyan: #00e5c8;
  --coral: #ff725e;
  --max: 940px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.7;
}

a { color: var(--cyan); }
a:hover { color: #7ff5e6; }

.legal-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.legal-brand img {
  display: block;
  width: 220px;
  max-width: 54vw;
  height: auto;
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 42px);
  border: 1px solid var(--border);
  background: var(--page);
}

.lang-switch button {
  min-width: 42px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--cyan);
  color: #03110f;
}

.legal-hero {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.legal-hero-inner,
.legal-content,
.legal-footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.legal-hero-inner { padding: 72px 0 64px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1, h2 { font-family: "Syne", Arial, sans-serif; }

h1 {
  max-width: 800px;
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

.updated {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.legal-content { padding: 64px 0 80px; }

.summary {
  margin: 0 0 52px;
  padding: 20px 22px;
  border-left: 4px solid var(--coral);
  background: var(--surface);
  color: #dce5ea;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.legal-section:first-of-type { border-top: 0; }

h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.25;
}

p { margin: 0 0 16px; color: #d4dee4; }

ul, ol { margin: 12px 0 18px; padding-left: 24px; }
li { margin: 8px 0; color: #d4dee4; }

.contact-block {
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-block p:last-child { margin-bottom: 0; }

.legal-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.legal-footer-inner {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

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

.legal-footer a { color: var(--muted); }

[data-language][hidden] { display: none !important; }

@media (max-width: 680px) {
  .legal-nav {
    min-height: 68px;
    gap: 12px;
  }

  .legal-brand img { width: 174px; }
  .home-link { display: none; }
  .legal-actions { gap: 8px; }
  .legal-hero-inner { padding: 52px 0 46px; }
  h1 { font-size: 36px; }
  .legal-content { padding: 42px 0 58px; }
  .legal-section { padding: 28px 0; }
  h2 { font-size: 22px; }
}
