/* AEVLO Documents V2 — premium, neutral, tactile, no decorative neon. */
:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --surface: #fff;
  --ink: #181818;
  --muted: #777773;
  --border: #e8e8e5;
  --border-strong: #d8d8d4;
  --soft: #f2f2f0;
  --radius: 16px;
  --shadow-rest: 0 1px 1px rgba(18,18,18,.025), 0 5px 18px rgba(18,18,18,.04), 0 16px 42px rgba(18,18,18,.025);
  --shadow-hover: 0 2px 3px rgba(18,18,18,.035), 0 12px 25px rgba(18,18,18,.075), 0 24px 54px rgba(18,18,18,.045);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse 90% 400px at 50% -180px, rgba(255,255,255,.9), transparent 100%), var(--bg);
  font: 400 15px/1.68 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid #1b1b1b; outline-offset: 4px; }
::selection { color: #fff; background: #363636; }
.legal-shell { width: min(1060px, calc(100% - 56px)); margin: 0 auto; padding: 28px 0 72px; }
.legal-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 50px; margin: 0 0 26px;
}
.legal-brand {
  display: inline-flex; align-items: center; min-height: 43px; padding: 0 15px;
  border: 1px solid #303030; border-radius: 13px;
  background: linear-gradient(160deg, #303030, #151515); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: -.065em; text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.17);
  transition: transform .2s ease, box-shadow .2s ease;
}
.legal-brand:hover { transform: translateY(-1px); box-shadow: 0 7px 14px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.17); }
.legal-back {
  display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 0 15px;
  border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.8);
  box-shadow: 0 2px 8px rgba(0,0,0,.025); color: #555; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.legal-back:hover { color: var(--ink); border-color: var(--border-strong); background: #fff; transform: translateY(-1px); }
.legal-hero, .legal-card, .legal-doc {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-rest);
}
.legal-hero {
  overflow: hidden; margin-bottom: 14px; padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(150deg, #fff 40%, #fafaf9 100%);
}
.legal-hero::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(#3a3a3a, #c3c3c0); opacity: .82;
}
.legal-eyebrow {
  margin: 0 0 9px; color: #82827d; font-size: 10px; font-weight: 750;
  letter-spacing: .13em; text-transform: uppercase;
}
.legal-hero h1, .legal-doc h1 {
  margin: 0; color: #191919; font-size: clamp(29px, 3.4vw, 40px);
  font-weight: 760; line-height: 1.12; letter-spacing: -.045em;
  text-wrap: balance;
}
.legal-hero > p:not(.legal-eyebrow) { max-width: 720px; margin: 12px 0 0; color: #70706d; font-size: 14px; line-height: 1.65; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.legal-card {
  min-width: 0; padding: 20px 46px 19px 22px; overflow: hidden;
  text-decoration: none; isolation: isolate;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, box-shadow .22s ease;
}
.legal-card::after {
  content: "↗"; position: absolute; top: 17px; right: 19px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 9px;
  background: #f3f3f1; color: #888883; font-size: 15px; font-weight: 500;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.legal-card:hover, .legal-card:focus-visible {
  border-color: #d6d6d1; transform: translateY(-3px); box-shadow: var(--shadow-hover);
}
.legal-card:hover::after, .legal-card:focus-visible::after {
  background: #242424; color: #fff; transform: translate(1px,-1px);
}
.legal-card strong { display: block; margin: 0 0 5px; font-size: 15px; font-weight: 690; letter-spacing: -.018em; line-height: 1.45; }
.legal-card > span:not(.tag) { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.legal-card .tag {
  display: inline-flex; width: fit-content; max-width: 100%; margin-top: 13px; padding: 4px 8px;
  border-radius: 7px; background: #f0f0ee; color: #5b5b57;
  font-size: 9px; font-weight: 750; letter-spacing: .055em; line-height: 1.3;
}
.legal-doc { max-width: 1060px; padding: clamp(25px, 5vw, 52px) clamp(24px, 6vw, 64px); }
.legal-doc h1 { max-width: 800px; font-size: clamp(28px, 3.35vw, 39px); }
.legal-doc h2 {
  margin: 36px 0 12px; padding: 20px 0 0; border-top: 1px solid #ededeb;
  font-size: 19px; font-weight: 720; line-height: 1.35; letter-spacing: -.027em;
}
.legal-doc h3 { margin: 25px 0 9px; font-size: 16px; font-weight: 680; line-height: 1.4; letter-spacing: -.015em; }
.legal-doc p, .legal-doc li { color: #42423f; font-size: 14px; line-height: 1.79; }
.legal-doc p { margin: 10px 0 14px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 10px 0 16px; }
.legal-doc li { padding-left: 3px; margin-bottom: 5px; }
.legal-doc a:not(.legal-button) { text-decoration-color: #adada8; text-underline-offset: 3px; }
.legal-doc a:not(.legal-button):hover { text-decoration-color: #252525; }
.legal-meta { margin: 11px 0 29px !important; padding-bottom: 20px; border-bottom: 1px solid #ededeb; color: #888883 !important; font-size: 12px !important; }
.legal-note {
  margin: 20px 0 0; padding: 15px 18px; border: 1px solid #e7e7e2;
  border-left: 3px solid #90908b; border-radius: 11px; background: #f6f6f3;
  color: #595955; font-size: 13px; line-height: 1.65;
}
.legal-note strong { display: block; margin: 0 0 3px; color: #343432; font-size: 13px; }
.legal-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: 11px; }
.legal-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 11px 13px; border-bottom: 1px solid #eeeeeb; text-align: left; vertical-align: top; font-size: 13px; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { background: #f8f8f6; color: #6b6b66; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.legal-table td { color: #4b4b47; }
.legal-footer { margin: 22px 0 0; color: #92928d; font-size: 11px; text-align: center; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.legal-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 0 16px;
  border: 1px solid #252525; border-radius: 10px; background: #252525; color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.12); font-size: 13px; font-weight: 650;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.legal-button:hover { transform: translateY(-1px); box-shadow: 0 7px 13px rgba(0,0,0,.14); }
.legal-button.secondary { border-color: var(--border); background: #f4f4f2; box-shadow: none; color: #333; }
.legal-button.secondary:hover { background: #ececea; }
@media (max-width: 720px) {
  .legal-shell { width: calc(100% - 24px); padding: 16px 0 44px; }
  .legal-topbar { margin-bottom: 18px; }
  .legal-hero { padding: 24px 20px; }
  .legal-grid { grid-template-columns: 1fr; gap: 9px; }
  .legal-card { padding: 17px 44px 16px 18px; }
  .legal-doc { padding: 25px 20px; }
  .legal-doc h2 { margin-top: 28px; }
  .legal-hero h1, .legal-doc h1 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  html, body { background: #fff !important; }
  .legal-shell { width: 100%; margin: 0; padding: 0; }
  .legal-topbar, .legal-actions { display: none !important; }
  .legal-hero, .legal-card, .legal-doc { border: 0; box-shadow: none; }
  .legal-doc { padding: 0; }
  .legal-doc h2, .legal-doc h3 { break-after: avoid; }
}

/* AEVLO V2 shared dark topbar on standalone public legal pages.
   Keep document contents and links unchanged; this is visual shell parity. */
.legal-shell { padding-top: 0; }
.legal-topbar {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  min-height: 64px;
  height: 64px;
  margin: 0 0 26px;
  padding: 0 max(20px,calc((100vw - 1060px)/2));
  transform: translateX(-50%);
  border-bottom: 1px solid #3c3e40;
  background: linear-gradient(165deg,#242526,#1b1c1d 61%,#171819);
  color: #f3f3f4;
  box-shadow: 0 5px 20px rgba(0,0,0,.14);
}
.legal-brand {
  gap: 8px;
  border: 0;
  padding: 0;
  min-height: 64px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.06em;
}
/* Exact live Modes/Profile logo metrics from styles.css shared sidebar. */
.legal-brand .brand-name {
  color: #f9f9fa;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.legal-brand .brand-beta {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #444647;
  border-radius: 999px;
  background: #2c2e30;
  color: #aeb0b2;
  font-size: 8px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: .09em;
}
.legal-brand:hover { transform: none; box-shadow: none; }
.legal-back {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #444648;
  border-radius: 12px;
  background: #2e3032;
  color: #f4f4f4;
  box-shadow: none;
}
.legal-back:hover { border-color: #66686b; color: #fff; background: #393b3d; }
@media (max-width: 720px) {
  .legal-shell { width: calc(100% - 24px); padding-top: 0; }
  .legal-topbar { padding-inline: 15px; margin-bottom: 18px; }
  .legal-brand { min-height: 64px; }
  .legal-brand .brand-name { font-size: 22px; }
  .legal-brand .brand-beta { min-height: 18px; padding-inline: 6px; font-size: 7px; }
  .legal-back { font-size: 12px; padding: 0 9px; }
}
@media print {
  .legal-shell { padding-top: 0; }
  .legal-topbar { display: none !important; }
}
