/* Shared styles for the legal pages: same palette and type as the main site, built for long, easy reading. */
:root {
  --white: #FFFFFF;
  --juice: #FFF6EC;
  --leaf: #0E3B29;
  --leaf-2: #435F52;
  --line: rgba(14,59,41,.14);
  --orange: #FF7A1A;
  --orange-ink: #B84A08;
  --orange-lg: #E05E0A;
  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--white); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--leaf); font: 400 18px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--leaf); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
.slice-ic { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -.08em; flex: none;
  background: radial-gradient(circle, #FFF3D6 0 10%, transparent 11%), repeating-conic-gradient(#FF9A2A 0 33deg, #FFE5B8 33deg 36deg);
  box-shadow: 0 0 0 .07em #FFE6C2, 0 0 0 .12em #F27A12; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; }
.mark { text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.mark span { font-weight: 400; color: var(--leaf-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--leaf); color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.pill:hover { background: var(--orange); color: var(--leaf); }

.head { padding-block: clamp(48px, 8vh, 88px) clamp(28px, 4vh, 40px); }
.kick { font-weight: 600; font-size: 15px; color: var(--orange-ink); margin: 0; }
h1 { font-weight: 700; font-size: clamp(44px, 7vw, 92px); line-height: .92; letter-spacing: -.05em; margin: 14px 0 0; text-wrap: balance; }
h1 em { font-style: normal; color: var(--orange-lg); }
.meta { color: var(--leaf-2); font-size: 15px; margin-top: 18px; }
.draft { margin-top: 22px; padding: 14px 18px; border-radius: 16px; background: var(--juice); font-size: 15.5px; line-height: 1.5; max-width: 70ch; }
.draft strong { font-weight: 700; }
mark.todo { background: #FFE9A8; color: var(--leaf); padding: 0 .25em; border-radius: 4px; box-shadow: 0 0 0 1px #E8C35A inset; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 10vh, 110px); }
.toc { position: sticky; top: 24px; border-top: 1.5px solid var(--leaf); padding-top: 12px; }
.toc p { margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--leaf-2); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; text-decoration: none; font-size: 15px; padding: 5px 0; color: var(--leaf-2); }
.toc a:hover { color: var(--leaf); text-decoration: underline; }
.body { max-width: 70ch; }
.body > p:first-child { font-size: 20px; line-height: 1.55; }
h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.035em; margin: 2.2em 0 .6em; scroll-margin-top: 24px; }
h2:first-of-type { margin-top: 1.4em; }
h3 { font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 1.6em 0 .4em; }
p, li { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .5em; }
li::marker { color: var(--orange-ink); }
.card { background: var(--juice); border-radius: 20px; padding: 20px 22px; margin: 1.2em 0; }
.card p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--leaf-2); font-size: 14px; }
.tbl { overflow-x: auto; }

.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 26px 40px; color: var(--leaf-2); font-size: 14.5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a[aria-current="page"] { color: var(--leaf); font-weight: 600; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  body { font-size: 17px; }
  .body > p:first-child { font-size: 18.5px; }
}
@media (max-width: 440px) { .mark span { display: none; } }
@media print { .top, .toc, .foot, .skip { display: none; } .doc { display: block; } }
