@font-face {
  font-family: "Little Now Serif";
  src: url("/assets/fonts/playfair-display-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f2e8d6;
  --ivory: #ebdec7;
  --card: #f9efdc;
  --ink: #211e1a;
  --ink-soft: #5c564c;
  --clay-deep: #9d4a32;
  --blue: #5e98cf;
  --focus: #32658f;
  --sage-deep: #60654b;
  --yellow: #f0b03d;
  --line: #d7c5a6;
  --serif: "Little Now Serif", Georgia, "Times New Roman", serif;
  --sans: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--paper);
  background-image: url("/assets/brand/paper-grain.webp");
  background-size: 171px 171px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clay-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.contact-card a:focus-visible {
  outline-color: var(--yellow);
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-size: 14px;
  font-weight: 750;
  translate: 0 -180%;
  transition: translate 160ms ease;
}

.skip-link:focus {
  translate: 0 0;
}

.legal-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: block;
  width: 174px;
  border-radius: 6px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.legal-nav,
.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.legal-nav a,
.legal-footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a[aria-current="page"],
.legal-nav a:hover,
.legal-footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal-shell {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--clay-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-kicker::before {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--clay-deep);
  content: "";
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 4.6rem);
  letter-spacing: -0.038em;
  line-height: 0.99;
}

.legal-lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.updated {
  margin: 18px 0 0;
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 750;
}

.summary-card {
  position: relative;
  margin: 48px 0 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 22px 55px rgba(74, 53, 32, 0.08);
}

.summary-card::after {
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 120px;
  height: 120px;
  border: 13px solid color-mix(in srgb, var(--yellow) 80%, transparent);
  border-radius: 50%;
  content: "";
  rotate: -11deg;
}

.summary-card h2 {
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  font-size: 1.65rem;
}

.summary-card p:last-child,
.summary-card ul:last-child {
  margin-bottom: 0;
}

.contents {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--blue);
  background: rgba(249, 239, 220, 0.56);
}

.contents strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.contents ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.legal-section {
  scroll-margin-top: 28px;
}

.legal-section h2 {
  margin: 56px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  letter-spacing: -0.018em;
  line-height: 1.16;
}

.legal-section h3 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 760;
}

.notice {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--clay-deep);
  border-radius: 0 12px 12px 0;
  background: rgba(249, 239, 220, 0.72);
}

.notice p:last-child {
  margin-bottom: 0;
}

.data-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.data-item {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(249, 239, 220, 0.58);
}

.data-item h3 {
  margin: 0 0 7px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
}

.data-item p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(249, 239, 220, 0.58);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

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

th {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(33, 30, 26, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.contact-card {
  margin-top: 32px;
  padding: 28px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--card);
}

.contact-card h2,
.contact-card h3 {
  margin-top: 0;
  color: inherit;
}

.contact-card a {
  color: var(--card);
  font-weight: 800;
}

.legal-footer {
  border-top: 1px solid var(--line);
}

.legal-footer-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 760px) {
  .legal-header,
  .legal-shell,
  .legal-footer-inner {
    width: min(100% - 32px, 760px);
  }

  .legal-header-inner,
  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header-inner {
    gap: 14px;
  }

  .legal-nav {
    gap: 0 18px;
  }

  .legal-shell {
    padding: 52px 0 74px;
  }

  .contents ul {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .contact-card {
    padding: 24px 20px;
  }

  .legal-footer-inner {
    padding: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .skip-link,
  .legal-nav,
  .legal-footer {
    display: none;
  }

  .legal-header,
  .legal-shell {
    width: 100%;
  }

  .legal-shell {
    padding: 32px 0;
  }

  .summary-card,
  .data-item,
  .contact-card {
    box-shadow: none;
    background: #fff;
    color: #000;
  }
}
