@font-face {
  font-family: "Paytone One";
  src: url("../assets/fonts/paytone-one.ttf") format("truetype");
  font-display: swap;
}

:root {
  --gold: #fecf00;
  --olive: #494436;
  --paper: #fbfbfb;
  --cream: #fdeeb3;
  --line: rgba(73, 68, 54, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--olive);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--olive);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  width: min(calc(100% - 3rem), 1180px);
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  padding: 0.5rem 0.8rem;
  display: inline-flex;
  border-radius: 0.75rem;
  background: var(--gold);
}

.brand img {
  width: 164px;
  height: auto;
}

.back-link {
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.draft-strip {
  padding: 0.72rem 1.5rem;
  color: var(--olive);
  background: var(--cream);
  border-block: 1px solid rgba(73, 68, 54, 0.12);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.policy-layout {
  width: min(calc(100% - 3rem), 1180px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: clamp(3rem, 8vw, 7rem);
  justify-content: start;
}

.policy-nav {
  position: sticky;
  top: 2rem;
  height: fit-content;
  display: grid;
  gap: 0.8rem;
  font-size: 0.78rem;
}

.policy-nav p {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-nav a {
  color: rgba(73, 68, 54, 0.72);
  text-decoration: none;
}

.policy-nav a:hover,
.policy-nav a:focus-visible {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.policy h1,
.policy h2,
.policy h3 {
  scroll-margin-top: 2rem;
  color: var(--olive);
}

.policy h1 {
  max-width: 740px;
  margin: 0 0 2rem;
  font-family: "Paytone One", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.policy h2 {
  margin: 4rem 0 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.policy h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.05rem;
}

.policy p,
.policy li {
  font-size: 0.98rem;
  line-height: 1.78;
}

.policy p {
  margin: 0.9rem 0;
}

.policy ul,
.policy ol {
  padding-left: 1.35rem;
}

.policy li + li {
  margin-top: 0.55rem;
}

.policy code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.3rem;
  background: rgba(254, 207, 0, 0.18);
  font: 0.88em ui-monospace, SFMono-Regular, Consolas, monospace;
}

.draft-notice {
  margin: 0 0 2rem;
  padding: 1.2rem 1.3rem;
  border-left: 5px solid var(--gold);
  background: rgba(253, 238, 179, 0.45);
}

.draft-notice p {
  margin: 0;
  font-size: 0.9rem;
}

.draft-notice p + p {
  margin-top: 0.5rem;
}

.table-wrap {
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

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

th {
  background: rgba(254, 207, 0, 0.15);
}

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

.policy hr {
  margin: 4rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal-footer {
  padding: 2rem max(1.5rem, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--paper);
  background: var(--olive);
  font-size: 0.75rem;
}

.legal-footer a {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .legal-header,
  .policy-layout {
    width: min(calc(100% - 2rem), 1180px);
  }

  .brand img {
    width: 140px;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .policy-nav {
    position: static;
    padding-bottom: 1.5rem;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
  }

  .policy-nav p {
    grid-column: 1 / -1;
  }

  .legal-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

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