/* Contact, Privacy and Terms share this dark shell with the account and upgrade pages. */
:root {
  --nav-gutter: 52px;            /* nav, content gutter and footer line up (same as account/download) */
  --ink: #f0ebe3;
  --ink-soft: #cfc8bd;
  --ink-muted: #8a8070;
  --accent: #013ff4;
  --accent-light: #8fbef7;
  --bg: #0e0c0a;
  --bg-card: rgba(22,20,16,0.72);
  --border: rgba(240,235,227,0.08);
  --border-hi: rgba(240,235,227,0.14);
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.page { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
/* The soft glow behind the title, as on the upgrade page. */
.glow {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(224,61,47,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
nav {
  position: relative;
  z-index: 1;
  height: var(--nav-height);
  padding: 0 var(--nav-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; }
.logo img { height: var(--logo-height); width: auto; display: block; }
.nav-links { display: flex; align-items: center; align-self: stretch; gap: var(--space-6); }
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--text-ui);
  transition: color 0.2s;
}
/* Same as the extension's From text / From image tabs: the current page is plain ink, and a 2px
   button-blue bar sits on the header line. legal-nav.js slides it from the previous page's link. */
.nav-links > a { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  pointer-events: none;
}
.nav-indicator-pending .nav-indicator { visibility: hidden; }   /* legal-nav.js slides it in */
@media (hover: hover) { .nav-links a:hover { color: var(--ink); text-decoration: none; } }

main, .content {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-24);
}
.eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-4);
}
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-title);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--title-gap);
}
h1 em { font-style: italic; color: var(--accent-light); }
.lede, .meta {
  font-size: var(--text-subtitle);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 620px;
  margin-bottom: var(--space-10);
}
.meta { position: relative; max-width: none; padding-bottom: var(--space-8); }
/* The line under "Last updated" runs the full page width, like the header and footer lines. */
.meta::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: var(--border);
  transform: translateX(-50%);
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-3);
}
p, ul li { font-size: var(--text-body); line-height: 1.7; color: var(--ink-soft); }
p { margin-bottom: var(--space-3); }
p:last-child { margin-bottom: 0; }
ul { margin: var(--space-2) 0 var(--space-3) 20px; }
ul li { margin-bottom: var(--space-1); }
a { color: var(--accent-light); text-decoration: none; text-underline-offset: 3px; }
@media (hover: hover) { a:hover { text-decoration: underline; } }
.section { margin-bottom: var(--space-12); }

/* Cards */
.support-card, .contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.support-card h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-18);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.contact-card { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 0; }
.contact-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); flex-shrink: 0; }
.contact-card p { margin: 0; }
.email-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  padding: 0 var(--control-pad-x);
  border: 1px solid rgba(143,190,247,0.35);
  border-radius: var(--control-radius);
  background: rgba(1,63,244,0.12);
  color: var(--accent-light);
  font-weight: 500;
}
@media (hover: hover) { .email-link:hover { background: rgba(1,63,244,0.2); text-decoration: none; } }
/* One line across the whole card, edge to edge, above both columns. */
.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) calc(-1 * var(--space-6)) 0;
  padding: var(--space-4) var(--space-6) 0;
  border-top: 1px solid var(--border);
}
.detail strong { display: block; font-size: var(--text-ui); font-weight: 500; color: var(--ink); margin-bottom: var(--space-1); }
.detail span { display: block; font-size: var(--text-ui); line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 600px) {
  :root { --nav-gutter: 20px; }
  main, .content { padding: var(--space-10) var(--space-4) var(--space-16); }
  .details { grid-template-columns: 1fr; }
  .nav-links { gap: var(--space-4); }
}
