/* Legal and contact pages. Loaded after homepage.css, which supplies the
   tokens, header and footer. Only the document body is styled here. */

.legal {
  width: min(760px, calc(100% - 56px));
  margin: 0 auto;
  padding: 80px 0 120px;
}

.legal:focus {
  outline: none;
}

/* ?embed=1: used when a native app opens a page in an in-app browser, e.g. a
   link-out from a ToS/risk-disclaimer acceptance screen. Hides the site
   header and footer so it reads as a standalone document. */
body.is-embed .site-header,
body.is-embed .site-footer,
body.is-embed .skip-link {
  display: none;
}

body.is-embed .legal {
  padding-top: 48px;
}

.legal__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal__header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
}

.legal__header .eyebrow {
  margin-bottom: 18px;
}

.legal__title {
  font-size: clamp(40px, 5.4vw, 64px);
  letter-spacing: -2px;
  margin-bottom: 14px;
}

.legal__updated {
  font-size: 13px;
  color: var(--muted);
}

.legal__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal__section h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--gold-soft);
}

.legal__section p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.legal__section p + p {
  margin-top: 12px;
}

.legal__section strong {
  color: var(--text);
  font-weight: 600;
}

.legal__section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal__section a:hover {
  color: var(--gold-soft);
}

.legal__list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal__list li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.legal__list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--gold);
  font-weight: 700;
}

.legal__body code {
  overflow-wrap: anywhere;
}

/* Local review status; revisions are not published policies. */
.draft-notice {
  padding: 1rem 1.2rem;
  margin: 0 0 2rem;
  border: 1px solid #57503a;
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.draft-notice strong {
  color: var(--gold-soft);
}

@media (max-width: 540px) {
  .legal {
    padding: 56px 0 88px;
  }
}
