:root {
  --legal-bg: #0a0a0b;
  --legal-panel: #121214;
  --legal-line: rgba(255, 255, 255, 0.13);
  --legal-text: #f3f1ed;
  --legal-muted: #a09f99;
  --legal-signal: #f23580;
}

.legal-footer-links {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--legal-line);
  background: #070707;
  color: var(--legal-muted);
}

.legal-footer-links__inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: .04em;
}

.legal-footer-links__inner > span { color: var(--legal-signal); }
.legal-footer-links a,
.legal-footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #898984;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.legal-footer-links a:hover,
.legal-footer-links button:hover { color: #fff; }

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  width: min(520px, calc(100% - 28px));
  padding: 24px;
  border: 1px solid var(--legal-line);
  background: rgba(12, 12, 13, .98);
  color: var(--legal-text);
  box-shadow: 0 25px 80px rgba(0, 0, 0, .55);
}

.cookie-banner[hidden], .cookie-panel[hidden] { display: none; }
.cookie-banner__tag { color: var(--legal-signal); font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .14em; }
.cookie-banner h2 { margin: 16px 0 10px; font-family: "Space Grotesk", sans-serif; font-size: 26px; line-height: 1; }
.cookie-banner p { margin: 0; color: var(--legal-muted); font-size: 13px; line-height: 1.55; }
.cookie-banner p a { color: #fff; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.cookie-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #3b3b3e;
  background: transparent;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}
.cookie-actions .cookie-accept { border-color: var(--legal-signal); background: var(--legal-signal); }
.cookie-panel { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--legal-line); }
.cookie-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 10px 0; }
.cookie-option strong, .cookie-option small { display: block; }
.cookie-option small { margin-top: 4px; color: #797974; font-size: 10px; line-height: 1.4; }
.cookie-option input { width: 18px; height: 18px; accent-color: var(--legal-signal); }
.cookie-essential { color: #777; font-family: "DM Mono", monospace; font-size: 8px; }

.legal-page { margin: 0; background: var(--legal-bg); color: var(--legal-text); font-family: "DM Sans", sans-serif; }
.legal-page *, .legal-page *::before, .legal-page *::after { box-sizing: border-box; }
.legal-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.legal-header { border-bottom: 1px solid var(--legal-line); background: #090909; }
.legal-header__inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 25px; }
.legal-header img { display: block; width: 190px; height: auto; }
.legal-header a { color: #d7d5d1; text-decoration: none; }
.legal-header__back { font-family: "DM Mono", monospace; font-size: 10px; }
.legal-hero { padding: 95px 0 62px; border-bottom: 1px solid var(--legal-line); background: radial-gradient(circle at 82% 0, rgba(242, 53, 128, .14), transparent 29rem); }
.legal-kicker { margin: 0 0 25px; color: var(--legal-signal); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .15em; }
.legal-hero h1 { max-width: 870px; margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(3rem, 7vw, 6.7rem); letter-spacing: -.065em; line-height: .91; }
.legal-hero__meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 35px; color: var(--legal-muted); font-family: "DM Mono", monospace; font-size: 9px; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 78px; padding: 70px 0 110px; }
.legal-index { position: sticky; top: 24px; align-self: start; padding: 22px; border: 1px solid var(--legal-line); background: var(--legal-panel); }
.legal-index strong { color: var(--legal-signal); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .1em; }
.legal-index a { display: block; margin-top: 13px; color: #999892; font-size: 12px; line-height: 1.35; text-decoration: none; }
.legal-content { min-width: 0; }
.legal-section { padding: 0 0 52px; scroll-margin-top: 30px; }
.legal-section + .legal-section { padding-top: 52px; border-top: 1px solid var(--legal-line); }
.legal-section h2 { margin: 0 0 22px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.04em; line-height: 1; }
.legal-section h3 { margin: 28px 0 10px; font-size: 16px; }
.legal-section p, .legal-section li { color: #aaa9a3; font-size: 14px; line-height: 1.75; }
.legal-section a { color: #fff; }
.legal-section ul, .legal-section ol { padding-left: 20px; }
.legal-notice { margin: 24px 0; padding: 18px; border-left: 3px solid var(--legal-signal); background: rgba(242, 53, 128, .08); }
.legal-pending { padding: 14px; border: 1px dashed #d89728; color: #f0bf68 !important; background: rgba(216, 151, 40, .07); }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.legal-table th, .legal-table td { padding: 14px; border: 1px solid var(--legal-line); color: #aaa9a3; font-size: 12px; line-height: 1.5; text-align: left; vertical-align: top; }
.legal-table th { color: #fff; background: var(--legal-panel); }
.legal-bottom { padding: 32px 0; border-top: 1px solid var(--legal-line); color: #777; font-family: "DM Mono", monospace; font-size: 9px; }
.legal-bottom__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal-bottom a { color: #aaa; text-decoration: none; }

@media (max-width: 760px) {
  .legal-footer-links__inner { align-items: flex-start; flex-direction: column; gap: 12px; padding: 24px 0; }
  .cookie-banner { right: 14px; bottom: 14px; padding: 20px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions button { width: 100%; }
  .cookie-accept { grid-column: 1 / -1; }
  .legal-header__inner { min-height: 78px; }
  .legal-header img { width: 155px; }
  .legal-hero { padding: 68px 0 45px; }
  .legal-layout { grid-template-columns: 1fr; gap: 38px; padding: 42px 0 75px; }
  .legal-index { position: static; }
  .legal-table { display: block; overflow-x: auto; }
}
