@font-face { font-family: Norms; src: url("fonts/TT_Norms_Pro_Regular.otf"); font-display: swap; }
@font-face { font-family: Norms; src: url("fonts/TT_Norms_Pro_Bold.otf"); font-weight: 700; font-display: swap; }
:root { --ink: #10141c; --paper: #f4f6fa; --line: #d6dce6; --blue: #6a90ff; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.125rem/1.55 Norms, Arial, sans-serif; }
.wrap { width: min(90%, 76rem); margin-inline: auto; }
.mast, .intro, footer { background: var(--ink); color: var(--paper); }
.mast nav, footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mast nav { min-height: 4.75rem; border-bottom: 1px solid #ffffff28; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; font-weight: 700; text-decoration: none; letter-spacing: -.04em; font-size: 1.38rem; }
.back { color: inherit; text-decoration: none; font-size: 1rem; padding: .45rem 1rem; border-radius: 2rem; border: 1px solid #697383; }
.back:hover { background: #263045; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding-block: clamp(2.25rem, 5vw, 4.75rem); }
.hero img { width: clamp(8rem, 14vw, 11.5rem); height: auto; background: #dfe7fc; border-radius: 39% 47% 37% 46%; transform: rotate(3deg); }
h1 { margin: 0; font-size: clamp(2.25rem, 5.4vw, 4.9rem); line-height: 1.03; letter-spacing: -.055em; overflow-wrap: anywhere; text-wrap: balance; }
.doc-kicker { margin: 0 0 .8rem; font-weight: 700; font-size: .95rem; color: #abc1ff; }
.doc-intro { margin: 1.1rem 0 0; max-width: 60ch; color: #d3dae7; }
.library { padding-block: clamp(1.8rem, 4.6vw, 4.2rem); }
details { margin-bottom: .65rem; border-radius: 1.25rem; background: white; border: 1px solid var(--line); }
details[open] { border-color: #aabeef; }
summary { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.1rem clamp(1.2rem, 3vw, 2.1rem); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.3; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: 0 0 .7rem;
  height: .7rem;
  margin-inline: .6rem;
  border: solid #405783;
  border-width: 0 2px 2px 0;
  border-radius: 1px;
  transform: translateY(-18%) rotate(45deg);
}
details[open] > summary::after { transform: translateY(18%) rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) {
  summary::after { transition: transform .2s ease-out; }
}
summary:hover { color: #334d92; }
.document-body { padding: 0 clamp(1.2rem, 3vw, 2.1rem) 1.4rem; max-width: 90ch; }
.document-body > :first-child { margin-top: .3rem; }
.document-body > :last-child { margin-bottom: 0; }
.document-body ul { padding-left: 1.2em; }
.document-body li + li { margin-top: .6em; }
.sheet a { color: #304d9d; overflow-wrap: anywhere; text-underline-offset: .2em; }
.terms-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.term-card, .prose { padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: 1.5rem; border: 1px solid var(--line); background: #fff; }
.term-card { display: flex; flex-direction: column; align-items: flex-start; }
.term-number { font-weight: 700; font-size: 1rem; color: #354f8e; border-radius: .8rem; padding: .3em .65em; background: #e6ecfd; }
.term-card h2 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); letter-spacing: -.035em; line-height: 1.2; margin: 1.3rem 0 .5rem; }
.term-card p { margin: 0 0 1.4rem; }
.term-card .term-link { margin-top: auto; color: var(--ink); background: #e6ecfd; font-weight: 700; text-decoration: none; border-radius: 1.5rem; padding: .55rem .95rem; }
.term-link:hover { background: #cbd9ff; }
.prose { max-width: 84ch; margin-inline: auto; overflow-wrap: anywhere; }
.prose h2 { margin: 1.5em 0 .65em; line-height: 1.18; letter-spacing: -.025em; }
.prose > :first-child { margin-top: 0; }
footer .wrap { padding-block: 1.6rem; flex-wrap: wrap; }
footer a { color: inherit; text-underline-offset: .2em; }
@media (max-width: 60rem) { .terms-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 40rem) {
  .terms-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: .9rem; }
  .hero img { grid-row: 1; width: 4rem; }
  .brand { font-size: 1.18rem; }
  .back { font-size: .95rem; }
}
@media print {
  .mast, footer, .hero img { display: none; }
  .intro, body { background: white; color: black; }
  .hero, .library { padding-block: 1rem; }
  .wrap { width: 100%; }
  .prose { border: 0; padding: 0; }
}
