:root {
  color-scheme: light;
  --ink: #11110f;
  --muted: #65645f;
  --line: #deddd7;
  --paper: #f6f5ef;
  --white: #fff;
  --lime: #dfff70;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.legal-header__inner,
.legal-footer__inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.legal-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header img {
  display: block;
  width: 116px;
  height: auto;
}

.legal-header nav,
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  font-weight: 600;
}

.legal-header nav a,
.legal-footer nav a {
  text-decoration: none;
}

.legal-header nav a[aria-current="page"] {
  padding-bottom: 3px;
  border-bottom: 2px solid var(--ink);
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 12%, rgba(223, 255, 112, 0.68), transparent 26%),
    var(--paper);
}

.legal-hero__inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.legal-hero__summary {
  max-width: 760px;
  margin: 28px 0 0;
  color: #3e3d39;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-layout {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 760px);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
  padding: 64px 0 112px;
}

.legal-toc {
  position: sticky;
  top: 28px;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-copy {
  min-width: 0;
}

.legal-copy section {
  scroll-margin-top: 30px;
  padding: 0 0 48px;
  margin: 0 0 48px;
  border-bottom: 1px solid var(--line);
}

.legal-copy section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(27px, 3.4vw, 38px);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h3 {
  margin: 30px 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

p,
ul,
ol,
dl {
  margin: 0 0 18px;
}

ul,
ol {
  padding-left: 24px;
}

li + li {
  margin-top: 8px;
}

.callout {
  margin: 0 0 32px;
  padding: 22px 24px;
  border: 1px solid #c9d697;
  border-radius: 16px;
  background: #f8ffe1;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.legal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

th,
td {
  min-width: 145px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--paper);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

address {
  font-style: normal;
}

.legal-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

.legal-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .legal-header__inner {
    min-height: 64px;
  }

  .legal-header nav a:first-child {
    display: none;
  }

  .legal-hero__inner {
    padding: 48px 0;
  }

  .legal-layout {
    display: block;
    padding: 42px 0 72px;
  }

  .legal-toc {
    position: static;
    margin-bottom: 48px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    columns: 2;
  }

  .legal-toc strong {
    column-span: all;
  }

  .legal-footer__inner {
    display: block;
  }

  .legal-footer nav {
    margin-top: 20px;
  }
}

@media print {
  .skip-link,
  .legal-header,
  .legal-toc,
  .legal-footer {
    display: none;
  }

  .legal-hero {
    background: none;
  }

  .legal-hero__inner,
  .legal-layout {
    width: 100%;
    padding: 24px 0;
  }

  .legal-layout {
    display: block;
  }

  .legal-copy section {
    break-inside: avoid;
  }
}
