:root {
  --bg: #f3efe6;
  --bg-strong: #e8dcc5;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: rgba(255, 250, 242, 0.92);
  --text: #1f1c18;
  --muted: #6e6558;
  --line: rgba(31, 28, 24, 0.1);
  --accent: #9c5d21;
  --accent-soft: rgba(156, 93, 33, 0.14);
  --shadow: 0 18px 50px rgba(47, 36, 17, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --max-width: 1120px;
  --sans:
    "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --serif:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, #f6f2e8 0%, #efe5d4 48%, #dcc8a9 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.site-header,
.site-footer,
.splash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.wordmark,
.logo-mark {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.site-nav,
.site-footer,
.splash-footer {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

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

.site-nav a:hover,
.site-footer a:hover,
.splash-footer a:hover,
.breadcrumb a:hover,
.lead a:hover,
.legal-card a:hover {
  color: var(--accent);
}

.legal-card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.legal-card a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.legal-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 1.25rem;
}

.landing-page {
  position: relative;
  color: #f6f0e7;
  background: #111416;
}

.splash-shell {
  position: relative;
  isolation: isolate;
  width: auto;
  min-height: 100vh;
  margin: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.legal-shell::before,
.splash-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(14, 17, 19, 0.18), rgba(14, 17, 19, 0.4)),
    url("/assets/bg-landing.jpg") center center / cover no-repeat;
  filter: blur(2px) grayscale(0.2) saturate(0.75) brightness(0.6) contrast(0.9);
  transform: scale(1.03);
  transform-origin: center;
}

.legal-page {
  background: #111416;
}

.landing-page .site-header {
  padding: 0;
}

.landing-page .logo-mark {
  color: #fffdf9;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: 0.06em;
}

.splash-main {
  min-height: 0;
}

.splash-footer {
  padding: 0;
  color: #fffdf9;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

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

.legal-main {
  min-height: calc(100vh - 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-card {
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.legal-overlay {
  width: 50%;
  min-width: 320px;
  height: 70vh;
  min-height: 50vh;
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 250, 242, 0.88);
  overflow: auto;
}

.legal-card h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
}

.legal-card h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.3rem;
}

.legal-card p {
  margin: 0.35rem 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .legal-shell,
  .splash-shell {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .legal-overlay {
    width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

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

  .site-nav {
    flex-wrap: wrap;
  }

  .splash-footer {
    flex-direction: row;
    align-items: flex-end;
  }
}
