:root {
  --ink: #17201e;
  --muted: #5d6965;
  --paper: #fffdf8;
  --line: #d9d4c8;
  --deep: #153c37;
  --sea: #0e6155;
  --blue: #264f8e;
  --gold: #f2b84b;
  --clay: #b95f3c;
  --danger: #8d3535;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --shadow: 0 24px 70px rgba(30, 45, 41, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f6f2e8;
  font-family: "Segoe UI", "Aptos", system-ui, sans-serif;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--deep);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(21, 60, 55, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem;
  color: white;
  background: var(--deep);
  border: 1px solid var(--deep);
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  padding: 2rem 0 2.5rem;
  margin: 2rem auto 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(760px, calc(100% - 2rem));
  margin: 2rem auto 0;
  padding: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-page h1,
.legal-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

.legal-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page code {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .site-nav {
    gap: 0.75rem;
    font-size: 0.76rem;
  }

  .site-nav .nav-secondary {
    display: none;
  }

  .footer {
    flex-direction: column;
  }

  .legal-page {
    padding: 1.35rem;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
