/* Legal documents on the marketing site (privacy.html, terms.html).
   Self-contained: the site's landing pages inline their own <style>, so this file
   only carries what the two legal pages need, using the same design tokens. */

:root {
  --ascard-line: #ebebeb;
  --ascard-text: #171717;
  --ascard-text-soft: #4d4d4d;
  --ascard-muted: #6b6b6b;
  --ascard-accent-2: #0070f3;
}

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

html { background: #fff; }

body {
  margin: 0;
  background: #fff;
  color: var(--ascard-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

.legal-top {
  border-bottom: 1px solid var(--ascard-line);
}

.legal-top-inner,
.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ascard-text);
  text-decoration: none;
}

.brand .a {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 19px;
}

.brand .dot { color: var(--ascard-accent-2); font-weight: 800; }

.legal-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}

.legal-top nav a { color: var(--ascard-muted); text-decoration: none; }
.legal-top nav a:hover { color: var(--ascard-text); }
.legal-top nav a[aria-current="page"] { color: var(--ascard-text); }

.legal-shell { padding-top: 48px; padding-bottom: 72px; }

.legal-shell h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal-shell section { margin-top: 32px; }

.legal-shell h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.legal-shell p {
  margin: 0 0 10px;
  color: var(--ascard-text-soft);
}

.legal-shell a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-shell a:focus-visible,
.legal-top a:focus-visible {
  outline: 2px solid var(--ascard-accent-2);
  outline-offset: 2px;
}

.legal-foot {
  border-top: 1px solid var(--ascard-line);
  padding: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ascard-muted);
}

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