:root {
  color-scheme: dark;
  --black: #0b0e11;
  --surface: #12171c;
  --surface-2: #171e24;
  --line: rgb(255 255 255 / 11%);
  --cream: #f4efe8;
  --muted: #b8b2aa;
  --orange: #ff8145;
  --green: #75d7aa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgb(255 129 69 / 14%), transparent 32rem),
    var(--black);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--orange);
  text-underline-offset: 3px;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(980px, calc(100% - 36px));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  text-decoration: none;
}

.legal-brand img {
  width: 118px;
  height: auto;
}

.legal-brand span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.back-link {
  font-size: 0.82rem;
  font-weight: 700;
}

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

.legal-kicker {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  max-width: 820px;
  margin: 14px 0 20px;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.draft-notice {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid rgb(255 129 69 / 35%);
  border-radius: 16px;
  background: rgb(255 129 69 / 8%);
}

.draft-notice strong {
  display: block;
  margin-bottom: 5px;
  color: #ffac84;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 44px;
}

.legal-actions a,
.legal-actions button {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--cream);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.legal-actions a:first-child {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
}

.legal-toc,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin-bottom: 18px;
  padding: 24px;
}

.legal-toc a {
  color: var(--cream);
  font-size: 0.83rem;
}

.legal-section {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 44px);
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section strong {
  color: var(--cream);
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.legal-meta div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 2%);
}

.legal-meta span,
.legal-meta strong {
  display: block;
}

.legal-meta span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-meta strong {
  margin-top: 4px;
  font-size: 0.86rem;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 700px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    padding-top: 42px;
  }

  .legal-toc,
  .legal-meta {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .legal-header,
  .legal-actions,
  .legal-toc,
  .legal-footer {
    display: none;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-section,
  .draft-notice {
    break-inside: avoid;
    border-color: #bbb;
    background: #fff;
  }

  .legal-section p,
  .legal-section li,
  .legal-lead {
    color: #222;
  }
}
