@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

body.legal-surface,
body.legal-surface *,
body.legal-surface *::before,
body.legal-surface *::after { box-sizing: border-box; }

body.legal-surface {
  --surface-canvas: #f7f2e9;
  --surface-panel: rgba(255, 254, 250, .84);
  --surface-panel-solid: #fffefa;
  --surface-ink: #17251c;
  --surface-soft: #4f5f55;
  --surface-faint: #6a766e;
  --surface-line: rgba(23, 37, 28, .14);
  --surface-line-strong: rgba(23, 37, 28, .25);
  --surface-wordmark: #285f1d;
  --surface-accent: #d4511b;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--surface-ink);
  background: var(--surface-canvas);
  color-scheme: light dark;
  animation: none !important;
  font-family: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.68;
}

body.legal-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 16%, rgba(114, 204, 88, .22), transparent 29%),
    radial-gradient(circle at 7% 88%, rgba(241, 139, 69, .14), transparent 28%),
    linear-gradient(128deg, #fbf8f1, #f2f4df);
}
body.legal-surface .bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 1; }
body.legal-surface .field {
  position: absolute;
  inset: 0;
  background: none;
  animation: none !important;
  will-change: auto;
}
body.legal-surface .grain { position: absolute; inset: -50%; opacity: .018; mix-blend-mode: multiply; }
body.legal-surface .vignette { display: none; }

body.legal-surface main {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 82px) 0 clamp(30px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 780px);
  grid-auto-rows: min-content;
  justify-content: space-between;
  align-items: start;
  column-gap: clamp(48px, 7vw, 104px);
  row-gap: 18px;
}

body.legal-surface .brand {
  grid-column: 1;
  grid-row: 1;
  width: fit-content;
  min-height: 44px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--surface-wordmark);
  text-decoration: none;
}
body.legal-surface .brand-mark { display: block; width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
body.legal-surface .brand-name {
  color: var(--surface-wordmark);
  background: none;
  font-family: "Bricolage", "Schibsted Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1;
}

body.legal-surface .page-head {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 34px;
  align-self: start;
  margin: clamp(106px, 14vh, 142px) 0 0;
}
body.legal-surface h1 {
  max-width: 11ch;
  margin: 0;
  padding: 0;
  color: var(--surface-ink);
  background: none;
  font-family: "Bricolage", "Schibsted Grotesk", sans-serif;
  font-size: clamp(2.65rem, 4.4vw, 4.6rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.055em;
}
body.legal-surface .sub {
  max-width: 29ch;
  margin: 1.25rem 0 0;
  color: var(--surface-faint);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .15em;
  line-height: 1.55;
  text-transform: uppercase;
}

body.legal-surface .card,
body.legal-surface main > section {
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--surface-line);
  border-radius: 26px;
  color: var(--surface-ink);
  background: var(--surface-panel);
  box-shadow: 0 30px 90px rgba(68, 52, 30, .12), inset 0 1px rgba(255,255,255,.74);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
body.legal-surface .card { grid-row: 1; }

body.legal-surface h2 {
  margin: 2rem 0 .5rem;
  color: var(--surface-ink);
  font-size: .8rem;
  font-weight: 780;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}
body.legal-surface h2:first-of-type { margin-top: 1.55rem; }
body.legal-surface h2::before { width: 7px; height: 7px; background: var(--surface-accent); box-shadow: 0 0 18px rgba(212, 81, 27, .28); }
body.legal-surface p,
body.legal-surface li,
body.legal-surface .note { color: var(--surface-soft); font-size: .98rem; line-height: 1.7; }
body.legal-surface strong { color: var(--surface-ink); font-weight: 720; }
body.legal-surface a { color: var(--surface-accent); text-underline-offset: 3px; }
body.legal-surface li::before { background: var(--surface-accent); }

body.legal-surface .back {
  grid-column: 2;
  min-height: 44px;
  margin-top: 2px;
  padding: .6rem 1rem;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  color: var(--surface-soft);
  background: var(--surface-panel);
}
body.legal-surface .note { grid-column: 2; margin: 2px 0 0; font-size: .8rem; }

body.legal-surface .pill,
body.legal-surface textarea { border-color: var(--surface-line-strong); color: var(--surface-ink); background: var(--surface-panel-solid); }
body.legal-surface .pill input,
body.legal-surface textarea { color: var(--surface-ink); }
body.legal-surface .btn {
  min-height: 46px;
  color: #fff;
  background: var(--surface-accent);
  box-shadow: 0 12px 28px rgba(212, 81, 27, .22), inset 0 1px rgba(255,255,255,.24);
}

body.legal-surface > .surface-footer {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 0 max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--surface-faint);
  font-size: .78rem;
}
body.legal-surface > .surface-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.25rem; }
body.legal-surface > .surface-footer a { color: inherit; text-underline-offset: 4px; text-decoration-color: transparent; }
body.legal-surface > .surface-footer a:hover { color: var(--surface-ink); text-decoration-color: currentColor; }
body.legal-surface :focus-visible { outline: 3px solid var(--surface-accent); outline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  body.legal-surface {
    --surface-canvas: #20472f;
    --surface-panel: rgba(45, 89, 59, .78);
    --surface-panel-solid: #2b573a;
    --surface-ink: #fff7ec;
    --surface-soft: #e0e8e1;
    --surface-faint: #c4d0c7;
    --surface-line: rgba(245, 255, 247, .15);
    --surface-line-strong: rgba(245, 255, 247, .28);
    --surface-wordmark: #82dc68;
    --surface-accent: #f07b48;
  }
  body.legal-surface::before {
    background:
      radial-gradient(circle at 84% 16%, rgba(114, 204, 88, .24), transparent 30%),
      radial-gradient(circle at 8% 88%, rgba(240, 123, 72, .15), transparent 30%),
      #20472f;
  }
  body.legal-surface .grain { opacity: .014; mix-blend-mode: screen; }
  body.legal-surface .card,
  body.legal-surface main > section { box-shadow: 0 30px 90px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.06); }
  body.legal-surface .btn { color: #17251c; }
}

@media (max-width: 760px) {
  body.legal-surface main { width: min(100% - 28px, 720px); padding: 22px 0 38px; display: block; }
  body.legal-surface .brand { margin: 0 0 36px; }
  body.legal-surface .brand-name { font-size: 1.4rem; }
  body.legal-surface .page-head { position: static; margin: 0 0 24px; }
  body.legal-surface h1 { max-width: 12ch; font-size: clamp(2.4rem, 13vw, 4rem); }
  body.legal-surface .card,
  body.legal-surface main > section { padding: 1.3rem; border-radius: 22px; margin-bottom: 14px; }
  body.legal-surface .back { margin-top: 10px; }
  body.legal-surface > .surface-footer { width: calc(100% - 28px); align-items: flex-start; }
  body.legal-surface > .surface-footer nav { max-width: 14rem; }
}

@media (prefers-reduced-transparency: reduce) {
  body.legal-surface .card,
  body.legal-surface main > section,
  body.legal-surface .back { background: var(--surface-panel-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.legal-surface *,
  body.legal-surface *::before,
  body.legal-surface *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
