@font-face {
  font-family: Inter;
  src: url('/assets/links/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0a0e0c;
  --surface: #101813;
  --line: #2a392f;
  --text: #f2f2f5;
  --body: #c7d1ca;
  --muted: #a5b4a9;
  --accent: #63e63f;
  --scroll-track: #111b15;
  --scroll-thumb: #648466;
  --scroll-thumb-hover: #7da480;
  --width: 75rem;
  font-family: Inter, system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 9px; height: 9px; }
  ::-webkit-scrollbar-track { background: var(--scroll-track); }
  ::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border: 2px solid var(--scroll-track);
    border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
}

@media (forced-colors: active) {
  :root { scrollbar-color: auto; }
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .24em; overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  background: var(--surface);
  padding: .75rem 1rem;
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header-inner, main, .site-footer {
  width: min(var(--width), calc(100% - 2 * clamp(1rem, 5vw, 4.5rem)));
  margin-inline: auto;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  min-height: 5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.05em;
}
.brand img { display: block; }
.document-nav { display: flex; gap: clamp(1.1rem, 2.6vw, 2rem); align-self: stretch; }
.document-nav a {
  display: flex;
  align-items: center;
  padding-block: .85rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.document-nav a:hover, .document-nav [aria-current] { color: var(--text); }
.document-nav [aria-current] { border-bottom-color: var(--accent); }

.policy-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  padding: clamp(1.6rem, 5.3vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: linear-gradient(115deg, #0a0e0c 14%, #13251a 100%);
}
.policy-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(50%, 35rem);
  background: url('/assets/vos/banner.png') 94% 40% / 650% auto no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 70%);
  opacity: .66;
  content: '';
}
.policy-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  border-right-color: #5d9a55;
  border-bottom-color: #5d9a55;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 98%, 95% 98%, 99% 94%, 99% 0);
  content: '';
}
.hero-copy { max-width: 47rem; }
h1 {
  margin: 0;
  font-size: clamp(2.125rem, 6vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -.061em;
  overflow-wrap: anywhere;
}
.hero-copy > p {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 1.75vw, 1.125rem);
  color: var(--body);
  line-height: 1.65;
}
.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem clamp(1.15rem, 3vw, 2.5rem);
  margin: 1.9rem 0 0;
  font-size: .875rem;
}
.document-meta dt { color: var(--muted); margin: 0 0 .4rem; }
.document-meta dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

.reading-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15.5rem) minmax(0, 45rem);
  gap: clamp(2rem, 5.5vw, 5.25rem);
  align-items: start;
}
.reading-layout:has(> :only-child) { grid-template-columns: minmax(0, 45rem); }
.desktop-contents {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.desktop-contents h2, .mobile-contents summary {
  margin: 0 0 .7rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
}
.desktop-contents ol, .mobile-contents ol {
  margin: 0;
  padding-inline-start: 2rem;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--muted);
}
.desktop-contents li, .mobile-contents li { padding-inline-start: .2rem; }
.desktop-contents li::marker, .mobile-contents li::marker { font-variant-numeric: tabular-nums; }
.desktop-contents a, .mobile-contents a {
  display: block;
  padding-block: .4rem;
  text-decoration: none;
  color: var(--muted);
}
.desktop-contents a:hover, .mobile-contents a:hover { color: var(--accent); text-decoration: underline; }
.mobile-contents { display: none; }

.policy-copy { color: var(--body); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.policy-section { padding-bottom: 1.7rem; }
.policy-section + .policy-section { padding-top: 1.7rem; border-top: 1px solid var(--line); }
.policy-copy h2, .policy-copy h3 { color: var(--text); line-height: 1.25; }
.policy-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -.03em;
  scroll-margin-top: 1.5rem;
}
.policy-copy h2:target { color: var(--accent); }
.policy-copy h3 { margin: 1.7rem 0 .75rem; font-size: 1.125rem; }
.policy-copy p, .policy-copy ol, .policy-copy ul { margin: 0 0 1rem; }
.policy-copy ul, .policy-copy ol { padding-inline-start: 1.6rem; }
.policy-copy li + li { margin-top: .4rem; }
.policy-copy strong { color: var(--text); font-weight: 700; }
.policy-copy :last-child { margin-bottom: 0; }
.policy-copy hr { margin: 1.8rem 0 1rem; border: 0; border-top: 1px solid var(--line); }
.policy-copy table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1.25rem 0; }
.policy-copy th, .policy-copy td {
  padding: .65rem clamp(.5rem, 2vw, 1rem);
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.policy-copy th { background: var(--surface); color: var(--text); }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-top: 1.75rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--muted);
}

@media (max-width: 50rem) {
  .reading-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .desktop-contents { display: none; }
  .mobile-contents {
    display: block;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: var(--surface);
  }
  .mobile-contents summary { margin: 0; padding-block: .15rem; cursor: pointer; }
  .mobile-contents[open] summary { margin-bottom: .6rem; }
  .mobile-contents a { padding-block: .55rem; }
}

@media (max-width: 25rem) {
  .brand img { width: 2rem; height: 2rem; }
  .brand { gap: .4rem; font-size: 1.2rem; }
  .site-header-inner { column-gap: .75rem; min-height: 4.25rem; }
  .document-nav { gap: .85rem; }
  .policy-hero { border-radius: 1rem; }
}
