:root {
  color-scheme: dark;
  --bg: #18130f;
  --accent: #ffb000;
  --hot: #ff5a36;
  --surface: #211a15;
  --raised: #292019;
  --border: #463a31;
  --text: #f7f3ee;
  --muted: #b7aea5;
  --dim: #827970;
  --content: 760px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -8rem, rgba(255, 176, 0, .10), transparent 28rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #ffc233; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
img { display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(24, 19, 15, .92);
  border-bottom: 1px solid rgba(70, 58, 49, .8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner, .site-main, .footer-inner {
  width: min(100%, calc(var(--content) + 48px));
  margin-inline: auto;
  padding-inline: 24px;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--accent); background: rgba(255, 176, 0, .09); }

.site-main { flex: 1; padding-top: clamp(30px, 5vw, 50px); padding-bottom: 88px; }
.page-header { padding-bottom: 34px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; color: var(--text); font-size: clamp(40px, 6vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.updated { margin: 16px 0 0; color: var(--dim); font-size: 14px; }

.legal-body section { padding: 36px 0 38px; border-bottom: 1px solid var(--border); scroll-margin-top: 92px; }
.legal-body section:last-child { border-bottom: 0; }
h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; color: var(--text); font-size: clamp(20px, 3.5vw, 24px); line-height: 1.28; letter-spacing: -.022em; }
h2 > span { flex: 0 0 auto; width: auto; min-width: 0; margin: 0; padding: 0; color: var(--accent); font-size: 1em; font-weight: 700; line-height: 1; letter-spacing: .02em; }
h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.35; }
p, ul { color: var(--muted); }
p { margin: 0 0 15px; }
p:last-child, ul:last-child { margin-bottom: 0; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin: 7px 0; padding-left: 3px; }
li::marker { color: var(--accent); }
strong { color: var(--text); font-weight: 650; }

.notice, .purchase-callout, .permission-card, .feature-grid article, .contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.notice { margin: 23px 0 0; padding: 20px 22px; border-left: 3px solid var(--hot); }
.notice strong { display: block; margin-bottom: 5px; }
.notice p { font-size: 15px; }
.notice + p { margin-top: 18px; }
.external-link::after { content: " ↗"; font-size: .82em; }

.permission-card { padding: 18px 20px; }
.permission-card > div { display: flex; align-items: center; gap: 10px; }
.permission-card p { margin: 4px 0 0 22px; font-size: 14px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 176, 0, .10); }
.permission-label { margin-top: 25px; font-size: 14px; color: var(--dim); }
.permission-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.permission-grid li { margin: 0; padding: 10px 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.feature-grid article { padding: 21px 21px 18px; }
.feature-grid ul { margin: 0; font-size: 14px; }
.feature-card--premium { border-color: rgba(255, 176, 0, .55) !important; background: linear-gradient(145deg, rgba(255,176,0,.09), var(--surface) 60%) !important; }
.card-label, .purchase-type { margin: 0 0 7px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.purchase-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; padding: 21px 22px; background: linear-gradient(120deg, rgba(255,176,0,.12), var(--raised)); border-color: rgba(255,176,0,.55); }
.purchase-callout strong { display: block; font-size: 18px; }
.purchase-type { display: block; }
.price { color: var(--accent); font-size: 23px; font-weight: 750; line-height: 1.15; text-align: right; white-space: nowrap; }
.price small { display: block; margin-top: 4px; color: var(--dim); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.legal-body section.contact-card { margin-top: 38px; padding: 27px 28px; border: 1px solid rgba(255, 176, 0, .62); background: linear-gradient(135deg, rgba(255,176,0,.10), var(--surface) 58%); }
.contact-card h2 { margin-bottom: 15px; }
.contact-kicker { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 12px; white-space: nowrap; }
.footer-brand img { width: 26px; height: 26px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 17px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .header-inner, .site-main, .footer-inner { padding-inline: 20px; }
  .header-inner { min-height: 64px; }
  .brand-mark, .brand-mark img { width: 38px; height: 38px; }
  .brand-name { font-size: 17px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 7px 8px; font-size: 13px; }
  .site-main { padding-top: 46px; padding-bottom: 64px; }
  .page-header { padding-bottom: 28px; }
  .legal-body section { padding-block: 31px; }
  h2 { gap: 8px; }
  .permission-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .purchase-callout { align-items: flex-start; flex-direction: column; gap: 12px; }
  .price { text-align: left; }
  .legal-body .contact-card { padding: 22px 20px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 390px) {
  .brand { gap: 7px; }
  .brand-name { font-size: 15px; }
  .site-nav a { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
