/* Shared styling for the official modsmthng GitHub Pages legal notices. */
:root {
  color-scheme: light dark;
  --background: #0d1011;
  --surface: #171b1d;
  --text: #f4f4f1;
  --muted: #adb5b8;
  --border: #343b3e;
  --accent: #a8c6fe;
  --accent-strong: #c7dafe;
  --focus: #f5f1e8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: light) {
  :root {
    --background: #f5f3ed;
    --surface: #fffdf8;
    --text: #171b1d;
    --muted: #5e676b;
    --border: #d2cec4;
    --accent: #68724d;
    --accent-strong: #56603d;
    --focus: #171b1d;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.legal-header,
.legal-shell,
.legal-footer {
  width: calc(100% - 40px);
  max-width: 860px;
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.legal-header a,
.legal-footer a {
  color: var(--muted);
}

.legal-header .wordmark {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-shell {
  padding-block: clamp(48px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-shell h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.legal-shell h2 {
  margin: 2.8rem 0 0.8rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
}

.legal-shell p,
.legal-shell li,
.legal-shell address {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-shell address {
  font-style: normal;
}

.legal-shell a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

.legal-shell ul {
  padding-left: 1.2rem;
}

.legal-card {
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.legal-meta {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 24px 40px;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

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