@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  color-scheme: light;
  --page-bg: #ffffff;
  --card-bg: #f0ede8;
  --panel-bg: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --accent: #ff4000;
  --accent-dark: #ff5100;
  --border: rgba(17, 17, 17, 0.1);
  --soft-border: rgba(17, 17, 17, 0.08);
  --page-header-sticky-top: 16px;
  --page-header-clearance: 140px;
  --section-scroll-offset: 180px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--page-bg);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1600px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px;
}

.page-card {
  --page-card-padding: 32px;
  min-height: calc(100vh - 32px);
  padding: var(--page-card-padding);
  border-radius: 28px;
  background: var(--panel-bg);
}

.page-header {
  position: sticky;
  top: var(--page-header-sticky-top);
  z-index: 40;
  margin: calc(-1 * var(--page-card-padding))
    calc(-1 * var(--page-card-padding)) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 20px clamp(24px, 2.4vw, 31px);
  border-radius: 28px;
  background: var(--card-bg);
}

.page-header-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.page-header-links {
  display: flex;
  flex: 1 1 720px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 38px;
}

.page-header-link {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.page-header-link:hover {
  opacity: 0.6;
}

.page-header-links .button {
  flex-shrink: 0;
}

.page-header-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.page-header-toggle svg {
  display: block;
}

.page-mobile-menu {
  width: 100%;
  margin-top: 16px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-mobile-menu[hidden] {
  display: none !important;
}

.page-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-mobile-link {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.page-mobile-menu .button {
  width: 100%;
  min-height: 52px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  padding: 0;
  text-decoration: none;
}

.brand-mark img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.brand-mark-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 0.95;
}

.brand-mark-kicker,
.brand-mark-name {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark-kicker {
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.brand-mark-name {
  font-size: clamp(1.8rem, 2.1vw, 2.35rem);
}

.page-hero {
  max-width: none;
  margin-top: clamp(34px, 5vw, 68px);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.375rem, 5vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.page-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 42px;
  align-items: start;
}

.legal-nav,
.legal-panel {
  border-radius: 28px;
  background: var(--panel-bg);
  border: 1px solid var(--soft-border);
}

.legal-nav {
  position: sticky;
  top: calc(var(--page-header-sticky-top) + var(--page-header-clearance));
  padding: 24px;
}

.legal-nav h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-nav ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.legal-nav li + li {
  margin-top: 10px;
}

.legal-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card-bg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color 180ms ease;
}

.legal-nav a:hover {
  background: #e7dfd9;
}

.legal-panel {
  padding: clamp(24px, 2.4vw, 31px);
}

.legal-note {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #f7f3ee;
  font-size: 15px;
  line-height: 1.65;
  color: #444444;
}

.legal-note strong {
  color: var(--text);
}

.legal-section + .legal-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--soft-border);
}

.legal-section {
  scroll-margin-top: var(--section-scroll-offset);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-section h3 {
  margin: 22px 0 10px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  font-size: 16px;
  line-height: 1.75;
  color: #303030;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 14px 0 0 22px;
  padding: 0;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-callout {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff7f3;
  border: 1px solid rgba(255, 64, 0, 0.12);
}

.legal-callout p {
  color: #3b302c;
}

.legal-definition-list {
  display: grid;
  gap: 12px;
}

.legal-definition-list div {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f3ee;
}

.legal-definition-list dt {
  font-weight: 700;
  margin: 0 0 6px;
}

.legal-definition-list dd {
  margin: 0;
  color: #303030;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .page-card {
    --page-card-padding: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-header-sticky-top: 40px;
  }

  .page-shell {
    padding-inline: 48px;
  }

  .page-card {
    --page-card-padding: 34px;
  }
}

@media (max-width: 1099px) {
  .page-header-links {
    display: none;
  }

  .page-header-toggle {
    display: inline-flex;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
    min-height: auto;
  }

  .page-card {
    min-height: auto;
    --page-card-padding: 24px;
  }

  .page-header {
    top: 12px;
    padding: 18px;
    border-radius: 24px;
  }

  .site-logo img {
    width: 176px;
  }

  .brand-mark {
    gap: 14px;
  }

  .brand-mark img {
    width: 58px;
    height: 58px;
  }

  .brand-mark-kicker,
  .brand-mark-name {
    line-height: 0.98;
  }

  .page-hero {
    margin-top: 32px;
  }

  .button {
    width: 100%;
  }

  .page-header-links .button {
    width: auto;
    min-height: 52px;
    padding: 0 22px;
  }

  .legal-nav,
  .legal-panel {
    border-radius: 24px;
  }

  .legal-layout {
    margin-top: 30px;
  }

  .legal-panel {
    padding: 22px 18px;
  }
}
