/* Shared chrome for the privacy, terms and corrections pages.
   Kept in one file so a change to legal-page styling never has to be made three times. */

*{ box-sizing: border-box; }

body {
  margin: 0;
  background: #0b0620;
  color: rgba(255, 255, 255, .74);
  font: 400 16.5px/1.72 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #a78bfa; text-decoration: none; }
a:hover { color: #c4b2ff; text-decoration: underline; }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */

.lg-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 6, 32, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.lg-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px clamp(20px, 5vw, 40px);
}

.lg-brand { display: flex; align-items: center; gap: 11px; }
.lg-brand img { width: 30px; height: 30px; border-radius: 9px; background: #fff; display: block; }
.lg-brand span { font: 800 18px/1 'Outfit', sans-serif; color: #fff; letter-spacing: -.02em; }
.lg-brand span em { color: #a78bfa; font-style: normal; }
.lg-brand:hover { text-decoration: none; }

.lg-back { font-size: 14.5px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.lg-back:hover { color: #fff; text-decoration: none; }

/* ---------- layout ---------- */

.lg-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 60px) clamp(20px, 5vw, 40px) 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 52px);
}

@media (min-width: 940px) {
  .lg-wrap { grid-template-columns: 216px minmax(0, 1fr); align-items: start; }
  .lg-toc { position: sticky; top: 92px; }
}

/* ---------- table of contents ---------- */

.lg-toc h2 {
  margin: 0 0 12px;
  font: 600 11.5px/1 'DM Sans', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}

.lg-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.lg-toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid rgba(255, 255, 255, .1);
  font-size: 14.5px;
  color: rgba(255, 255, 255, .58);
  line-height: 1.45;
}
.lg-toc a:hover { color: #fff; border-left-color: #a78bfa; text-decoration: none; }

/* ---------- document body ---------- */

.lg-doc { min-width: 0; }

.lg-eyebrow {
  font: 600 11.5px/1 'DM Sans', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0;
}

.lg-doc h1 {
  margin: 16px 0 0;
  font: 800 clamp(32px, 5.2vw, 46px)/1.08 'Outfit', sans-serif;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}

.lg-dates {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .48);
}

.lg-lede {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.68;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}

.lg-doc h2 {
  margin: 52px 0 0;
  padding-top: 12px;
  font: 700 clamp(21px, 2.6vw, 25px)/1.25 'Outfit', sans-serif;
  letter-spacing: -.02em;
  color: #fff;
  scroll-margin-top: 88px;
  text-wrap: balance;
}

.lg-doc h3 {
  margin: 30px 0 0;
  font: 600 17.5px/1.35 'Outfit', sans-serif;
  color: #fff;
  scroll-margin-top: 88px;
}

.lg-doc p { margin: 15px 0 0; text-wrap: pretty; }

.lg-doc ul, .lg-doc ol { margin: 15px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.lg-doc li { padding-left: 4px; }
.lg-doc li::marker { color: rgba(167, 139, 250, .8); }

.lg-doc strong { color: #fff; font-weight: 600; }

hr.lg-rule { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 46px 0 0; }

/* ---------- callouts ---------- */

.lg-note {
  margin: 22px 0 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 3px solid #a78bfa;
  border-radius: 0 10px 10px 0;
  font-size: 15.5px;
}
.lg-note p { margin: 10px 0 0; }
.lg-note p:first-child { margin: 0; }

.lg-note.warn { border-left-color: #f59e0b; }

/* Fields the operator must fill in before this page is relied on. */
.lg-todo {
  background: rgba(245, 158, 11, .14);
  color: #fcd34d;
  border: 1px dashed rgba(245, 158, 11, .5);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: .92em;
  font-weight: 600;
}

/* ---------- tables ---------- */

.lg-tablewrap { margin: 20px 0 0; overflow-x: auto; }

.lg-doc table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; }

.lg-doc th {
  text-align: left;
  font: 600 11.5px/1.3 'DM Sans', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  padding: 0 16px 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  vertical-align: bottom;
}

.lg-doc td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  vertical-align: top;
}

.lg-doc th:last-child, .lg-doc td:last-child { padding-right: 0; }
.lg-doc tbody tr:last-child td { border-bottom: 0; }
.lg-doc td:first-child { color: #fff; font-weight: 600; white-space: nowrap; }

/* ---------- footer ---------- */

.lg-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 30px clamp(20px, 5vw, 40px);
}

.lg-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .45);
}

.lg-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.lg-footer a { color: rgba(255, 255, 255, .62); }
.lg-footer a:hover { color: #fff; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
