/* Shared chrome for static /privacy and /terms. */

:root {
  --bg: #faf8f6;
  --text: #2a211c;
  --muted: #5f5046;
  --faint: #6d5f54;
  --accent-editorial: #bf0a30;
  --line: #ebe5df;
  --sans: 'Outfit', Helvetica, Arial, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --brand: 'Shrikhand', Georgia, 'Times New Roman', serif;
  --brand-den: #e05570;
  --brand-den-stroke: #2a211c;
  --theme-accent: var(--accent-editorial);
  --surface: #fffcfa;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --focus-ring-radius: 4px;
  --focus-ring: var(--theme-accent);
  --focus-ring-on-dark: var(--surface);
}

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

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

:where(:focus-visible) {
  border-radius: var(--focus-ring-radius);
}

:focus:not(:focus-visible) {
  outline: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--sans);
}

.legal {
  width: 100%;
  min-height: 100%;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(2rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(100%, 40rem);
  margin-inline: auto;
}

.legal-header {
  margin-bottom: 2rem;
}

.brand-title {
  margin: 0;
  min-width: 0;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.45;
  color: var(--text);
  text-align: start;
}

.brand-title-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.brand-title-link:focus-visible {
  border-radius: var(--focus-ring-radius);
}

.brand-move {
  display: block;
  font-family: var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0;
  padding-left: 0.04em;
  font-size: 0.4em;
  font-style: italic;
  font-weight: 600;
  line-height: revert-layer;
  translate: 0.3em;
}

.brand-den {
  display: block;
  font-family: var(--brand);
  font-style: normal;
  font-weight: 400;
  line-height: 0.88;
  color: var(--brand-den);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.028em var(--brand-den-stroke, #2a211c);
  paint-order: stroke fill;
}

.legal-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-updated {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--faint);
}

.legal-body {
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}

.legal-body h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal-body p,
.legal-body ul {
  margin: 0.75rem 0 0;
}

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

.legal-body li + li {
  margin-top: 0.45rem;
}

.legal-body a {
  color: var(--accent-editorial);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-footer {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--faint);
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current='page'] {
  color: var(--accent-editorial);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}
