:root {
  --ink: #13171a;
  --muted: #697176;
  --paper: #f4f2ed;
  --white: #fff;
  --orange: #ff7200;
  --line: #d4d0c8;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.legal-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: var(--white);
  background: #0d1113;
  border-bottom: 3px solid var(--orange);
}

.legal-header-inner {
  width: min(calc(100% - 64px), var(--container));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.legal-logo {
  width: 270px;
  height: 76px;
  display: block;
  filter: brightness(0) invert(1);
}

.legal-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }

.legal-back {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c3c8ca;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.legal-back span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 19px;
}

.legal-hero {
  padding: 82px 0 58px;
  background-image: linear-gradient(rgba(20,25,28,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(20,25,28,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  border-bottom: 1px solid var(--line);
}

.legal-hero-inner, .legal-layout {
  width: min(calc(100% - 64px), var(--container));
  margin: 0 auto;
}

.legal-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.legal-kicker::before { content: ""; width: 34px; height: 2px; background: var(--orange); }

.legal-hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: "Russo One", sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.legal-hero h1 em { color: var(--orange); font-style: normal; }
.legal-hero p { max-width: 760px; margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.legal-layout {
  padding: 62px 0 92px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.legal-aside { position: sticky; top: 130px; }
.legal-card { padding: 25px; background: #e9e6e0; border: 1px solid var(--line); }
.legal-card strong { display: block; margin-bottom: 15px; font-family: "Russo One", sans-serif; font-size: 17px; font-weight: 400; text-transform: uppercase; }
.legal-card p { margin: 0 0 11px; color: #626a6e; font-size: 13px; line-height: 1.55; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a { color: var(--orange); font-weight: 800; text-decoration: none; }

.legal-nav { margin-top: 17px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.legal-nav a { padding: 12px 2px; color: #596165; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-nav a:hover { color: var(--orange); }

.legal-content { padding: 8px 0 0; }
.legal-section { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { margin: 0 0 20px; font-family: "Russo One", sans-serif; font-size: clamp(24px, 2.5vw, 34px); font-weight: 400; line-height: 1.2; text-transform: uppercase; }
.legal-section h3 { margin: 28px 0 13px; font-size: 17px; line-height: 1.4; }
.legal-section p, .legal-section li { color: #545c60; font-size: 16px; line-height: 1.75; }
.legal-section p { margin: 0 0 14px; }
.legal-section ul, .legal-section ol { margin: 13px 0 17px; padding-left: 23px; }
.legal-section li { margin-bottom: 8px; }
.legal-section a { color: #d96000; font-weight: 700; }
.legal-note { padding: 19px 22px; color: #454d51; background: #fff; border-left: 3px solid var(--orange); }

.legal-footer { color: #a2a9ac; background: #0d1113; border-top: 3px solid var(--orange); }
.legal-footer-inner { width: min(calc(100% - 64px), var(--container)); min-height: 100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 12px; }
.legal-footer-links { display: flex; gap: 24px; }
.legal-footer a { color: #b2b8ba; text-decoration: none; }
.legal-footer a:hover { color: var(--orange); }

@media (max-width: 850px) {
  .legal-layout { grid-template-columns: 1fr; gap: 36px; }
  .legal-aside { position: static; }
  .legal-nav { display: none; }
}

@media (max-width: 620px) {
  .legal-header-inner, .legal-hero-inner, .legal-layout, .legal-footer-inner { width: calc(100% - 32px); }
  .legal-header-inner { min-height: 82px; }
  .legal-logo { width: 205px; height: 58px; }
  .legal-back { font-size: 0; gap: 0; }
  .legal-hero { padding: 58px 0 42px; }
  .legal-hero h1 { font-size: clamp(35px, 10.5vw, 48px); }
  .legal-hero p { font-size: 15px; }
  .legal-layout { padding: 40px 0 65px; }
  .legal-section { padding-bottom: 29px; margin-bottom: 29px; }
  .legal-section h2 { font-size: 25px; }
  .legal-section p, .legal-section li { font-size: 15px; }
  .legal-footer-inner { padding: 26px 0; align-items: flex-start; flex-direction: column; }
  .legal-footer-links { flex-direction: column; gap: 10px; }
}

.legal-card,
.legal-note,
.legal-back span {
  border-radius: 14px;
}

.legal-card,
.legal-note {
  border: 1px solid rgba(19,23,26,.16);
}
