/* Shared styling for RE:FRAME legal + contact pages.
   Mirrors the marketing index.html design system (Steel Blue #203343,
   Signal Orange #f05a24, Montserrat headers / Inter body) so the legal
   surface reads as the same premium product, not a bolted-on afterthought. */
:root {
  --bg: #eef1f4; --bg-top: #f7f9fb; --surface: #ffffff; --surface-2: #f3f6f9;
  --ink: #203343; --muted: #56697a; --faint: #93a1ac;
  --accent: #f05a24; --accent-ink: #c2431a; --accent-soft: #fde7dd;
  --line: #e9edf1; --border: #dde3e9;
  --shadow-sm: 0 1px 2px rgba(27,37,34,.04), 0 2px 8px rgba(27,37,34,.05);
  --shadow: 0 1px 2px rgba(27,37,34,.05), 0 10px 30px rgba(27,37,34,.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(120% 60% at 50% -8%, var(--bg-top) 0%, var(--bg) 52%) fixed;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.62;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* slim nav */
nav { position: sticky; top: 0; z-index: 40; background: rgba(250,248,243,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); }
nav::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background: linear-gradient(90deg,var(--accent) 0%, rgba(240,90,36,0) 34%); }
.nav-in { max-width: 820px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { height: 30px; width: auto; }
.nav-back { font-weight: 600; font-size: 14px; color: var(--ink); opacity: .8; }
.nav-back:hover { opacity: 1; text-decoration: none; }

/* document */
main { max-width: 820px; margin: 0 auto; padding: clamp(36px,6vw,72px) 24px 40px; }
.doc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; }
h1 { font-family: 'Montserrat','Inter',sans-serif; font-size: clamp(30px,5vw,46px); line-height: 1.08;
  letter-spacing: -.03em; font-weight: 600; margin: 0 0 12px; }
.doc-meta { font-size: 13.5px; color: var(--faint); margin: 0 0 8px; }
.lede { font-size: clamp(16px,2vw,18px); color: var(--muted); margin: 18px 0 0; line-height: 1.6; }

.doc-body { margin-top: clamp(28px,4vw,44px); }
.doc-body h2 { font-family: 'Montserrat','Inter',sans-serif; font-size: clamp(20px,2.6vw,26px);
  line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin: 40px 0 12px; padding-top: 14px; position: relative; }
.doc-body h2::before { content:''; position:absolute; top:0; left:0; width:38px; height:3px; border-radius:999px;
  background: linear-gradient(90deg,var(--accent),var(--accent-ink)); }
.doc-body h3 { font-size: 16.5px; font-weight: 600; margin: 26px 0 8px; color: var(--ink); }
.doc-body p { font-size: 15.5px; color: var(--muted); margin: 0 0 14px; }
.doc-body p b, .doc-body li b { color: var(--ink); font-weight: 600; }
.doc-body ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.doc-body li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.doc-body li::before { content:''; position:absolute; left:2px; top:9px; width:7px; height:7px; border-radius:50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* callout (Google Limited Use / important) */
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 14px; padding: 18px 20px; margin: 18px 0 22px; box-shadow: var(--shadow-sm); }
.callout p { margin: 0; font-size: 15px; color: var(--ink); }
.callout p + p { margin-top: 10px; }
.callout .k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 8px; }

/* scopes table */
.scopes { width: 100%; border-collapse: collapse; margin: 8px 0 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14.5px; }
.scopes th, .scopes td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.scopes th { background: var(--surface-2); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: var(--ink); }
.scopes tr:last-child td { border-bottom: 0; }
.scopes td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--accent-ink); white-space: nowrap; }
.scopes td b { color: var(--ink); }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 8px; }
.cc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; box-shadow: var(--shadow-sm); }
.cc h3 { margin: 0 0 6px; font-size: 16px; }
.cc p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.cc a.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; background: linear-gradient(180deg,#f5743f,var(--accent)); color: #fff;
  box-shadow: 0 4px 12px rgba(240,90,36,.22); }
.cc a.btn:hover { text-decoration: none; transform: translateY(-1px); }
.cc a.btn.ghost { background: var(--surface); color: var(--accent-ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

/* footer */
footer { border-top: 1px solid var(--line); max-width: 820px; margin: 40px auto 0; padding: 30px 24px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { font-size: 13.5px; font-weight: 600; color: var(--ink); opacity: .78; }
.foot-links a:hover { opacity: 1; color: var(--accent-ink); text-decoration: none; }
.foot-meta { font-size: 12.5px; color: var(--faint); text-align: right; }

@media (max-width: 620px) {
  .contact-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; } .foot-meta { text-align: center; }
  .scopes { font-size: 13px; } .scopes th, .scopes td { padding: 10px 12px; }
}
