/* Ark of Moments legal / policy pages — v47.9.119.1 */
:root {
  color-scheme: dark;
  --aom-legal-bg: #05080c;
  --aom-legal-card: rgba(9, 15, 18, .9);
  --aom-legal-card-soft: rgba(255, 255, 255, .045);
  --aom-legal-text: #f2f6ee;
  --aom-legal-muted: rgba(242, 246, 238, .72);
  --aom-legal-border: rgba(255, 255, 255, .14);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--aom-legal-bg); }

body.aom-legal-page {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, "Segoe UI", sans-serif;
  color: var(--aom-legal-text);
  background:
    radial-gradient(circle at 18% 10%, rgba(var(--aom-accent-rgb), .16), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(214, 168, 79, .12), transparent 30%),
    linear-gradient(180deg, #0a1016 0%, #05080c 54%, #030507 100%);
}

body.aom-legal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 74%);
}

.aom-legal-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.aom-legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  letter-spacing: .12em;
  font-size: .82rem;
  font-weight: bold;
}

.aom-legal-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .32);
}

.aom-legal-hero {
  margin-top: clamp(24px, 4vw, 48px);
  max-width: 960px;
}

.aom-legal-eyebrow {
  margin: 0 0 12px;
  color: var(--aom-accent);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: bold;
}

.aom-legal-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: bold;
}

.aom-legal-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--aom-legal-muted);
  font-size: clamp(.98rem, 1.3vw, 1.12rem);
  line-height: 1.55;
}

.aom-legal-hero span {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--aom-accent-rgb), .26);
  border-radius: 999px;
  color: var(--aom-accent);
  background: rgba(var(--aom-accent-rgb), .07);
  font-size: .84rem;
  font-weight: bold;
}

.aom-legal-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 24px 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

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

.aom-legal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid var(--aom-legal-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: rgba(242, 246, 238, .8);
  font-size: .84rem;
  font-weight: bold;
}

.aom-legal-nav a:hover,
.aom-legal-nav a:focus-visible,
.aom-legal-nav a.is-active {
  border-color: rgba(var(--aom-accent-rgb), .55);
  color: var(--aom-accent);
  background: rgba(var(--aom-accent-rgb), .08);
  outline: none;
}

.aom-legal-notice {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 212, 95, .28);
  border-radius: 18px;
  background: rgba(255, 212, 95, .075);
  color: rgba(255, 242, 200, .92);
  line-height: 1.55;
}

.aom-legal-card {
  padding: clamp(16px, 2.2vw, 28px);
  border: 1px solid rgba(var(--aom-accent-rgb), .22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 20, 24, .94), rgba(6, 10, 13, .92));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
}

.aom-legal-section + .aom-legal-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.aom-legal-section h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.25;
  font-weight: bold;
}

.aom-legal-section p,
.aom-legal-section li {
  color: rgba(242, 246, 238, .78);
  font-size: .98rem;
  line-height: 1.66;
}

.aom-legal-section p {
  margin: 0;
}

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

.aom-legal-section ul {
  margin: 12px 0 0;
  padding-inline-start: 22px;
}

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

.aom-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: rgba(242, 246, 238, .6);
  font-size: .84rem;
}

.aom-legal-footer a {
  color: var(--aom-accent);
  font-weight: bold;
}

.aom-site-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  width: min(960px, 100%);
  margin: 24px auto 0;
  padding: 16px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: rgba(242, 246, 238, .68);
  font-size: .82rem;
}

.aom-site-legal-links a {
  color: rgba(242, 246, 238, .76);
  text-decoration: none;
}

.aom-site-legal-links a:hover,
.aom-site-legal-links a:focus-visible {
  color: var(--aom-accent);
  outline: none;
}

.aom-site-footer-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  width: min(960px, 100%);
  margin: 10px auto 0;
  padding: 0 18px 22px;
  color: rgba(242, 246, 238, .56);
  font-size: .78rem;
  letter-spacing: .02em;
  text-align: center;
}

.aom-site-legal-links--auth {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  margin: 18px auto 0;
  padding-top: 14px;
}

@media (max-width: 700px) {
  .aom-legal-shell { width: min(100% - 20px, 1280px); padding-top: 16px; }
  .aom-legal-brand { font-size: .76rem; }
  .aom-legal-brand img { width: 38px; height: 38px; }
  .aom-legal-hero { margin-top: 24px; }
  .aom-legal-hero h1 { font-size: clamp(2rem, 13vw, 3.15rem); letter-spacing: -.045em; }
  .aom-legal-nav { margin-top: 18px; padding-bottom: 4px; }
  .aom-legal-nav a { justify-content: center; }
  .aom-site-legal-links { font-size: .78rem; gap: 8px 12px; }
  .aom-site-footer-credit { font-size: .72rem; padding-bottom: 18px; }
}
