/* Inboxspam — site styles
   Palette and type follow the design canvas: ink hero, warm paper, lime accent. */

:root {
  --ink: #0E1118;
  --ink-raised: #161A24;
  --ink-control: #1A1F2A;
  --ink-control-hover: #232937;
  --ink-line: #2B3242;
  --ink-line-strong: #3A4152;
  --ink-track: #242A37;
  --on-ink: #FFFFFF;
  --on-ink-soft: #E7E9EE;
  --on-ink-link: #C3C8D4;
  --on-ink-muted: #AEB4C2;
  --on-ink-faint: #8C93A3;

  --paper: #F3F1EA;
  --paper-soft: #FBFAF7;
  --paper-tint: #F7F5EF;
  --paper-hover: #FAF8F3;
  --surface: #FFFFFF;
  --line: #E2DFD6;
  --line-soft: #ECE9E1;
  --line-faint: #F0EDE5;
  --line-strong: #D3CFC3;
  --line-rule: #D8D4C9;

  --text: #14161C;
  --text-2: #3D4250;
  --text-body: #4A4F5C;
  --muted: #5E6370;

  --accent: #C8F03C;
  --accent-hover: #B8E02A;
  --on-accent: #0E1118;
  --ok: #1F7A3A;
  --live: #2F9E44;
  --danger: #B42318;
  --danger-soft-bg: #FCE9E4;
  --warn-on-ink: #FF8A6B;
  --notice-bg: #FBF6E4;
  --notice-line: #EFE6C6;
  --notice-text: #5A4A12;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --page: min(1200px, calc(100% - 32px));
  --dots: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; }
.i { flex-shrink: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.site-header :focus-visible,
.premium-teaser :focus-visible,
.site-footer :focus-visible,
.plan--featured :focus-visible,
.demo-bar :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: transparent;
  font-size: 15px; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-accent { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:disabled { background: #E8E5DC; color: #6B7080; }
.btn-dark { background: var(--ink-control); border-color: var(--ink-line); color: var(--on-ink-soft); }
.btn-dark:hover { background: var(--ink-control-hover); border-color: var(--ink-line-strong); }
.btn-dark:disabled { opacity: 0.6; }
.btn-outline-dark { height: 44px; padding: 0 18px; border-color: var(--ink-line-strong); color: var(--on-ink); }
.btn-outline-dark:hover { background: var(--ink-control); }
.btn-light { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-light:hover { background: var(--paper-tint); }
.btn-outline { height: 52px; border: 1.5px solid var(--text); color: var(--text); font-size: 16px; font-weight: 600; border-radius: 14px; }
.btn-outline:hover { background: var(--text); color: var(--surface); }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.icon-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.icon-btn:hover { background: var(--paper-tint); }

/* ---------- Header & nav ---------- */

.site-header {
  position: relative;
  padding-bottom: 176px;
  background-color: var(--ink);
  background-image: var(--dots);
  background-size: 24px 24px;
  color: var(--on-ink);
}
.nav {
  position: relative;
  width: var(--page); height: 84px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.wordmark { font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -0.03em; }
.wordmark span { color: var(--accent); }
.brand-sm .brand-mark { width: 28px; height: 28px; }
.brand-sm .wordmark { font-size: 21px; }
.nav-menu { flex: 1; display: flex; align-items: center; }
.nav-links { display: flex; gap: 8px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 12px 14px; border-radius: 10px;
  color: var(--on-ink-link); font-size: 15px; text-decoration: none;
}
.nav-links a:hover { color: var(--on-ink); }
.nav-links a[aria-current="page"] { color: var(--on-ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { padding: 12px 16px; color: var(--on-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  background: var(--ink-control); color: var(--on-ink);
}

/* ---------- Hero ---------- */

.hero {
  width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding-top: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
}
.eyebrow-pill {
  margin: 0;
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  min-height: 34px; padding: 4px 16px;
  border: 1px solid var(--ink-line); border-radius: 999px;
  background: var(--ink-control); color: var(--on-ink-link);
  font-size: 14px;
}
.eyebrow-pill .sep { color: #4A5163; }
.hero-title {
  margin: 0;
  font-family: var(--font-display); font-size: clamp(42px, 6.4vw, 76px); font-weight: 700;
  line-height: 1; letter-spacing: -0.04em; text-wrap: balance;
  color: var(--on-ink);
}
.hero-sub { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--on-ink-muted); text-wrap: pretty; }

.address-block { width: min(920px, 100%); margin-top: 18px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.address-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 28px;
  border: 1px solid var(--ink-line); border-radius: 22px;
  background: var(--ink-raised);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}
.address-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.address-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-faint); }
.address-value {
  margin: 0;
  font-family: var(--font-mono); font-size: clamp(18px, 2.4vw, 30px); font-weight: 500; line-height: 1.3;
  color: var(--on-ink); overflow-wrap: anywhere;
}
.address-value .at-domain { color: var(--on-ink-faint); }
.address-value .is-loading { color: var(--on-ink-faint); font-family: var(--font-body); font-size: 0.7em; }
.btn-copy { height: 64px; padding: 0 28px; border-radius: 14px; font-size: 17px; }
.btn-copy .when-idle, .btn-copy .when-done { display: inline-flex; align-items: center; gap: 10px; }
.btn-copy .when-done { display: none; }
.btn-copy.is-copied .when-idle { display: none; }
.btn-copy.is-copied .when-done { display: inline-flex; }

.fuse { display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.fuse-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--on-ink-muted); }
.fuse-row > span { display: inline-flex; align-items: center; gap: 8px; }
.fuse-time .mono { font-weight: 600; font-variant-numeric: tabular-nums; }
.fuse.is-low .fuse-time, .fuse.is-expired .fuse-time { color: var(--warn-on-ink); }
.fuse-private .long { display: inline; }
.fuse-private { gap: 8px; }
.fuse-track { height: 4px; border-radius: 4px; background: var(--ink-track); overflow: hidden; }
.fuse-fill { width: 100%; height: 100%; border-radius: 4px; background: var(--accent); transition: width 1s linear; }
.fuse.is-low .fuse-fill, .fuse.is-expired .fuse-fill { background: var(--warn-on-ink); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.actions .btn { padding: 0 18px; }
.is-checking .refresh-icon { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Inbox card ---------- */

.inbox {
  position: relative; z-index: 1;
  width: var(--page); height: 640px; margin: -120px auto 0;
  display: grid; grid-template-columns: 420px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(14, 17, 24, 0.45);
  overflow: hidden;
}
.inbox:focus { outline: none; }
.list-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line-soft); }
.pane-head {
  flex-shrink: 0; height: 68px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.pane-title { display: flex; align-items: center; gap: 10px; }
.pane-title h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.count-pill {
  min-width: 24px; height: 24px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--text); color: #FFFFFF;
  font-size: 13px; font-weight: 600;
}
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.8s ease-out infinite; }
.live.is-stopped .live-dot { background: var(--danger); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 68, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(47, 158, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 68, 0); }
}
.list-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.msg-list { margin: 0; padding: 0; list-style: none; }
.msg-row {
  width: 100%;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 24px;
  border: 0; border-bottom: 1px solid var(--line-faint);
  background: var(--surface); color: var(--text);
  text-align: left;
}
.msg-row:hover { background: var(--paper-hover); }
.msg-row[aria-current="true"] { background: var(--paper); box-shadow: inset 3px 0 0 var(--text); }
.msg-row:focus-visible { outline-offset: -3px; }
.msg-row.is-arriving { animation: rowIn 0.4s ease-out; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.avatar {
  flex-shrink: 0; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #DCE8F5; color: var(--text);
  font-size: 15px; font-weight: 600;
}
.msg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg-top { display: flex; align-items: center; gap: 8px; }
.msg-from { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-new {
  flex-shrink: 0; height: 20px; padding: 0 7px;
  display: inline-flex; align-items: center;
  border-radius: 6px; background: var(--text); color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.msg-time { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.msg-subject, .msg-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-subject { font-size: 14px; }
.msg-row.is-unread .msg-subject { font-weight: 600; }
.msg-preview { font-size: 13px; color: var(--muted); }
.msg-item { position: relative; }
.msg-del {
  position: absolute; top: 13px; right: 16px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9px;
  background: transparent; color: var(--muted);
}
.msg-del:hover { background: var(--danger-soft-bg); color: var(--danger); }
.msg-del:focus-visible { outline-offset: 1px; }

/*
 * Two arrangements, because a pointer and a finger need different things.
 *
 * With a pointer the button appears on hover and takes the timestamp's place. The timestamp
 * is hidden rather than removed, so its box stays and not a pixel of the row moves — and the
 * list gives up no width at all to a control that is invisible most of the time. In a pane
 * this narrow, 30px of sender name is worth more than a permanent gutter.
 *
 * Without a pointer there is no hover to reveal anything, so the button is always there and
 * the row does reserve room for it. Hence a (hover: none) query and not its opposite: the
 * always-visible arrangement is the one a device with no pointer must fall back to.
 */
@media (hover: hover) {
  .msg-del { opacity: 0; transition: opacity 0.12s ease-out; }
  .msg-item:hover .msg-del, .msg-item:focus-within .msg-del { opacity: 1; }
  /*
   * The timestamp goes the moment the pointer arrives, and waits for the icon to finish
   * fading before it comes back. Without that delay the two are both on screen, on top of
   * each other, for the length of the fade-out.
   */
  .msg-time { transition: visibility 0s linear 0.12s; }
  .msg-item:hover .msg-time, .msg-item:focus-within .msg-time { visibility: hidden; transition-delay: 0s; }
}
/* Specific enough to survive the narrow-screen block further down, which sets the shorthand. */
@media (hover: none) {
  .msg-item .msg-row { padding-right: 52px; }
}
.reader-del { color: var(--muted); }
.reader-del:hover { background: var(--danger-soft-bg); border-color: var(--danger-soft-bg); color: var(--danger); }

.state {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px 36px; text-align: center;
}
.state h3, .reader-empty h3 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.state p { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.state .btn { margin-top: 6px; }
.state-icon {
  position: relative; width: 88px; height: 88px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--paper); color: var(--text);
}
.state-icon .ring { position: absolute; inset: 0; border: 2px solid var(--line-strong); border-radius: 50%; animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.state-expired .state-icon { background: var(--danger-soft-bg); color: var(--danger); }

/* ---------- Reader ---------- */

.reader-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper-soft); }
.reader-empty {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 48px; text-align: center;
}
.reader-empty .tile {
  width: 64px; height: 64px; margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--text-2);
}
.reader-empty p { margin: 0; max-width: 380px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.reader { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--paper-soft); }
.reader-bar { display: none; }
.reader-head {
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.reader-titlerow { display: flex; align-items: flex-start; gap: 16px; }
.reader-subject {
  flex: 1; margin: 0;
  font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.reader-subject:focus { outline: none; }
.reader-meta { display: flex; align-items: center; gap: 12px; }
.reader-from { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.from-line { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.from-line strong { font-weight: 600; }
.from-line .addr, .to-line { color: var(--muted); }
.to-line { font-size: 13px; overflow-wrap: anywhere; }
.badge-view {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--paper); color: var(--text-2);
  font-size: 13px; font-weight: 500;
}
.img-bar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 32px;
  border-bottom: 1px solid var(--notice-line);
  background: var(--notice-bg); color: var(--notice-text);
  font-size: 13px;
}
.img-bar span { flex: 1; }
.img-bar button {
  min-height: 34px; padding: 0 12px;
  border: 1px solid #D9CB94; border-radius: 8px;
  background: var(--surface); color: #3F340C;
  font-size: 13px; font-weight: 500;
}
.reader-body { flex: 1; min-height: 0; display: flex; }
.email-frame { flex: 1; width: 100%; height: 100%; border: 0; background: var(--paper-soft); }

/* ---------- Content sections ---------- */

.section { width: var(--page); margin: 0 auto; }
.h2-xl {
  margin: 0;
  font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 54px); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.lead { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.card h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.how { padding: 128px 0 32px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps { margin: 0; padding: 0; list-style: none; }
.step-num {
  align-self: flex-start; padding: 6px 10px;
  border-radius: 8px; background: var(--text); color: var(--accent);
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
}

.privacy { padding: 96px 0 32px; display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; }
.privacy-intro { display: flex; flex-direction: column; gap: 18px; }
.privacy-intro .lead { max-width: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature { gap: 14px; padding: 28px; }
.feature h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--text); color: var(--accent);
}

.premium-teaser {
  margin-top: 96px; padding: 56px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 480px; align-items: center; gap: 56px;
  border-radius: 28px;
  background-color: var(--ink); background-image: var(--dots); background-size: 24px 24px;
  color: var(--on-ink);
}
.teaser-copy { display: flex; flex-direction: column; gap: 18px; }
.kicker-accent { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.teaser-copy h2 {
  margin: 0;
  font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.teaser-copy p { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.6; color: var(--on-ink-muted); }
.teaser-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.teaser-cta .from { font-size: 15px; color: var(--on-ink-muted); }
.compare { border: 1px solid var(--ink-line); border-radius: 18px; background: var(--ink-raised); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 22px; border-bottom: 1px solid #232937; text-align: left; font-weight: 400; vertical-align: top; }
.compare thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-faint); }
.compare thead th, .compare thead td { border-bottom-color: var(--ink-line); }
.compare thead th.is-premium { color: var(--accent); }
.compare tbody th { color: var(--on-ink-muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .dim { color: var(--on-ink-faint); }

.faq { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 120px 0 96px; display: flex; flex-direction: column; gap: 36px; }
.faq .h2-xl { text-align: center; }
.faq-list { border-top: 1px solid var(--line-rule); }
.faq-item { border-bottom: 1px solid var(--line-rule); }
.faq-item summary {
  min-height: 76px; padding: 12px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  list-style: none; cursor: pointer;
  font-size: 19px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline-offset: -2px; }
.faq-item p { margin: 0; padding: 0 64px 26px 4px; font-size: 16px; line-height: 1.65; color: var(--text-body); }

.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 14px; }
.footer-inner {
  width: var(--page); margin: 0 auto; padding: 40px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: block; padding: 10px 12px; color: var(--on-ink-link); text-decoration: none; }
.footer-links a:hover { color: var(--on-ink); }

/* ---------- Change-address dialog ---------- */

.modal {
  width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-xl);
  background: var(--surface); color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.55);
  overflow: auto;
}
.modal::backdrop { background: rgba(9, 11, 16, 0.64); }
.modal[open] { animation: pop 0.22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 32px 0; }
.modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }
.modal-head p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.modal-body { display: flex; flex-direction: column; gap: 22px; padding: 24px 32px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .domains legend { font-size: 14px; font-weight: 600; }
.name-input {
  display: flex; align-items: center; height: 56px;
  border: 1.5px solid var(--text); border-radius: 14px;
  background: var(--surface); overflow: hidden;
}
.name-input:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.name-input input {
  flex: 1; min-width: 0; height: 100%; padding: 0 16px;
  border: 0; outline: none; background: transparent;
  font-family: var(--font-mono); font-size: 18px;
}
.name-suffix {
  flex-shrink: 0; max-width: 55%; height: 100%; padding: 0 16px;
  display: flex; align-items: center;
  border-left: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-mono); font-size: 16px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field-status { margin: 0; min-height: 22px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.field-status.is-ok { color: var(--ok); }
.field-status.is-error { color: var(--danger); }
.domains { min-width: 0; margin: 0; padding: 0; border: 0; }
.domains legend { padding: 0; margin-bottom: 10px; }
.domains-inner { display: flex; flex-direction: column; gap: 10px; }
.domain-grid { display: grid; gap: 10px; }
.domain-grid--free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.domain-grid--premium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.domain-opt {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.domain-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.radio-dot {
  flex-shrink: 0; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #86837A; border-radius: 50%;
}
.radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.domain-opt.is-checked { border-color: var(--text); background: var(--paper-tint); }
.domain-opt.is-checked .radio-dot { border-color: var(--text); }
.domain-opt.is-checked .radio-dot::after { background: var(--text); }
.domain-opt:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.domain-name { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-free { font-size: 12px; font-weight: 600; color: var(--ok); }
.domain-locked {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  min-height: 64px; padding: 8px 14px;
  border: 1.5px dashed var(--line-strong); border-radius: 12px;
  background: var(--paper-hover); color: var(--text-2);
  text-align: left;
}
.domain-locked:hover, .domain-locked.is-picked { border-color: var(--text); }
.domain-locked--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 52px; }
.domain-locked .domain-name { flex: none; max-width: 100%; font-size: 14px; }
.tag-locked { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.premium-hint {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--text); color: #FFFFFF; font-size: 14px;
}
.premium-hint > span { flex: 1; }
.premium-hint a { padding: 6px 0; color: var(--accent); font-weight: 600; text-decoration: none; }
.premium-hint a:focus-visible { outline-color: var(--accent); }
.note {
  margin: 0;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--paper); color: var(--text-2);
  font-size: 13px; line-height: 1.5;
}
.note .i { margin-top: 1px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 18px 32px;
  border-top: 1px solid var(--line-soft); background: var(--paper-soft);
}

/* ---------- Toast & demo bar ---------- */

.toast {
  position: fixed; top: 20px; left: 50%; z-index: 250;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 12px 18px;
  border-radius: 12px; background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -16px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.2s, transform 0.2s; }

.demo-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 150;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px; background: var(--text); color: #FFFFFF;
  font-size: 13px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}
.demo-text strong { margin-right: 6px; color: var(--accent); font-weight: 600; }
.demo-bar .btn { height: 36px; padding: 0 12px; font-size: 13px; }
.demo-bar .icon-btn { width: 36px; height: 36px; border-color: var(--ink-line-strong); background: transparent; color: #FFFFFF; }
.demo-bar .icon-btn:hover { background: var(--ink-control-hover); }

/* ---------- Pricing page ---------- */

.pricing-header { padding-bottom: 200px; }
.pricing-hero {
  width: min(820px, calc(100% - 32px)); margin: 0 auto; padding-top: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}
.pricing-hero h1 {
  margin: 0;
  font-family: var(--font-display); font-size: clamp(44px, 6vw, 72px); font-weight: 700;
  line-height: 1; letter-spacing: -0.04em; text-wrap: balance;
}
.pricing-hero p { margin: 0; max-width: 600px; font-size: 18px; line-height: 1.55; color: var(--on-ink-muted); text-wrap: pretty; }
/* Billing period toggle: one per paid card, so Premium can be read annually while Pro is
   monthly. The cards are not all the same colour — Premium is dark — so this has two skins. */
.billing {
  border: 0; padding: 3px; margin: 0;
  display: inline-flex; align-self: flex-start; gap: 2px;
  border-radius: 999px; background: var(--paper-tint);
}
.billing-opt {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px; border-radius: 999px;
  color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.billing-opt:hover { color: var(--text); }
.billing-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.billing-opt:has(input:checked) { background: var(--text); color: #FFFFFF; font-weight: 600; }
.billing-opt:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }

/* On the dark card, invert it: a subtle track and the accent for the selected side. */
.plan--featured .billing { background: var(--ink-control); }
.plan--featured .billing-opt { color: var(--on-ink-muted); }
.plan--featured .billing-opt:hover { color: #FFFFFF; }
.plan--featured .billing-opt:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.plan--featured .billing-opt:has(input:focus-visible) { outline-color: var(--accent); }

/* Both prices are in the markup; the toggle decides which one is shown. */
.price-monthly, .price-annual { align-items: baseline; gap: 6px; }
.price-monthly { display: flex; }
.price-annual { display: none; }
.plan[data-billing="annual"] .price-monthly { display: none; }
.plan[data-billing="annual"] .price-annual { display: flex; }
.price-save {
  margin-left: 2px; padding: 3px 9px; border-radius: 999px;
  background: rgba(200, 240, 60, 0.16); color: var(--accent);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}

.plan-badge--soon { background: var(--ink-control); color: var(--on-ink-soft); border: 1px solid var(--ink-line-strong); }

.plans {
  position: relative;
  width: var(--page); margin: -140px auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 24px;
}
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
  padding: 36px 32px;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(14, 17, 24, 0.35);
}
.plan h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.plan-desc { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (min-width: 1001px) { .plan-desc { min-height: 3em; } }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price span { font-size: 15px; color: var(--muted); }
.plan hr { margin: 0; height: 1px; border: 0; background: var(--line-soft); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.45; }
.plan li { display: flex; gap: 12px; }
.plan li .i { margin-top: 2px; color: var(--ok); }
.plan--featured { border-color: var(--text); background: var(--text); color: #FFFFFF; box-shadow: 0 30px 60px -24px rgba(14, 17, 24, 0.55); }
.plan--featured .plan-desc, .plan--featured .price span { color: var(--on-ink-muted); }
.plan--featured hr { background: var(--ink-line); }
.plan--featured li .i { color: var(--accent); }
.plan-badge {
  position: absolute; top: 20px; right: 20px;
  height: 28px; padding: 0 12px;
  display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.every-plan {
  width: var(--page); margin: 40px auto 96px; padding: 24px 32px;
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.every-plan .feature-icon { flex-shrink: 0; }
.every-plan p { flex: 1; margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.every-plan p strong { color: var(--text); font-weight: 600; }
.every-plan a { flex-shrink: 0; padding: 12px 4px; font-size: 15px; font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .inbox { grid-template-columns: 360px minmax(0, 1fr); }
  .privacy { grid-template-columns: 1fr; gap: 40px; }
  .premium-teaser { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
}

@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute; top: calc(100% - 4px); left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px;
    border: 1px solid var(--ink-line); border-radius: 16px;
    background: var(--ink-raised);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  }
  .site-header.nav-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links a { padding: 12px; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .nav-actions { flex-direction: column; align-items: stretch; padding-top: 8px; border-top: 1px solid var(--ink-line); }
  .nav-login { text-align: center; }

  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 440px; }
  .list-pane { border-right: 0; min-width: 0; }
  .reader-pane { display: none; }
  .inbox.is-reading .reader-pane { display: flex; position: fixed; inset: 0; z-index: 120; }
  .reader-bar { display: block; flex-shrink: 0; }
  .reader-strip {
    height: 44px; padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--ink); color: var(--on-ink-muted); font-size: 13px;
  }
  .strip-address { min-width: 0; color: var(--on-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .strip-time { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
  .reader-nav {
    height: 60px; padding: 0 12px 0 8px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--line-soft); background: var(--surface);
  }
  .back-btn {
    height: 44px; padding: 0 8px;
    display: inline-flex; align-items: center; gap: 4px;
    border: 0; border-radius: 10px; background: transparent; color: var(--text);
    font-size: 16px; font-weight: 500;
  }
  .reader-close, .badge-desktop { display: none; }
  .reader-head { padding: 20px; gap: 14px; }
  .reader-subject { font-size: 24px; }
  .img-bar { padding: 10px 16px 10px 20px; }
  .img-bar button { min-height: 40px; }

  .how { padding-top: 88px; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body.reader-open { overflow: hidden; }
  body.reader-open .demo-bar { display: none; }
}

body.has-demo-bar { padding-bottom: 72px; }

@media (max-width: 640px) {
  .site-header { padding-bottom: 28px; }
  .nav { height: 64px; }
  .brand-mark { width: 30px; height: 30px; }
  .wordmark { font-size: 22px; }

  .hero { align-items: stretch; gap: 16px; padding-top: 4px; text-align: left; }
  .eyebrow-pill { justify-content: flex-start; min-height: 0; padding: 0; border: 0; background: none; color: var(--on-ink-muted); font-size: 13px; gap: 6px; }
  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 16px; }
  .address-block { margin-top: 4px; }
  .address-card { flex-direction: column; align-items: stretch; padding: 16px; border-radius: 18px; box-shadow: none; }
  .address-label { font-size: 11px; }
  .address-value { font-size: 17px; }
  .btn-copy { height: 52px; border-radius: 12px; font-size: 16px; }
  .fuse { padding: 0; }
  .fuse-row { font-size: 13px; }
  .fuse-private .long { display: none; }
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
  .actions .btn { padding: 0 10px; }

  .inbox { margin-top: 20px; border-radius: 20px; box-shadow: none; min-height: 360px; }
  .pane-head { height: 60px; padding: 0 18px; }
  .msg-row { padding: 16px 18px; gap: 12px; }
  .msg-del { top: 11px; right: 10px; }

  .how { padding: 72px 0 16px; gap: 32px; }
  .card { padding: 24px; }
  .privacy { padding-top: 64px; }
  .grid-2 { grid-template-columns: 1fr; }
  .premium-teaser { margin-top: 64px; padding: 28px 22px; border-radius: 20px; }
  .compare th, .compare td { padding: 12px 14px; font-size: 14px; }
  .faq { padding: 80px 0 64px; gap: 24px; }
  .faq-item summary { font-size: 17px; }
  .faq-item p { padding-right: 8px; }

  .modal-head, .modal-body { padding-left: 20px; padding-right: 20px; }
  .modal-head { padding-top: 22px; }
  .modal-head h2 { font-size: 24px; }
  .modal-foot { padding: 14px 20px; }
  .name-input input { padding: 0 12px; font-size: 16px; }
  .name-suffix { max-width: 50%; padding: 0 10px; font-size: 13px; }
  .domain-grid--free, .domain-grid--premium { grid-template-columns: 1fr; }
  .domain-locked { min-height: 52px; flex-direction: row; align-items: center; justify-content: space-between; }

  .demo-bar { left: 8px; right: 8px; bottom: 8px; }
  .demo-text { flex: 1; }

  .pricing-header { padding-bottom: 160px; }
  .pricing-hero { padding-top: 24px; }
  .plan { padding: 28px 24px; }
  .every-plan { flex-direction: column; align-items: flex-start; padding: 22px; margin-bottom: 64px; }
}

/* ---------------------------------------------------------------------------
   Contact page
   --------------------------------------------------------------------------- */

.contact-header { padding-bottom: 0; }
.contact-main {
  width: min(680px, calc(100% - 32px)); margin: 0 auto;
  padding: 56px 0 96px;
  display: flex; flex-direction: column; gap: 32px;
}
.contact-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-display); font-size: clamp(34px, 5vw, 46px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
}
.contact-intro p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }

.contact-form {
  display: flex; flex-direction: column; gap: 22px;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--surface);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.input {
  width: 100%; min-width: 0; height: 52px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 16px; color: var(--text);
  transition: border-color 120ms ease;
}
.input:hover { border-color: var(--line-strong, var(--text)); }
.input:focus { outline: 2px solid var(--text); outline-offset: 2px; border-color: var(--text); }
.input.is-invalid { border-color: var(--danger); }
textarea.input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 150px; }
select.input { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.field-help { margin: 0; font-size: 13px; color: var(--muted); }
.field-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field-count.is-near { color: var(--danger); }

.contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-actions .field-status { min-height: 0; }

/* Only takes up space once Turnstile decides to show something. */
.turnstile-slot:empty { display: none; }
.turnstile-slot { display: flex; justify-content: center; }

.contact-note h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.contact-note ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-note li { font-size: 15px; line-height: 1.55; color: var(--muted); }
.contact-note strong { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .contact-main { padding: 36px 0 64px; }
}

/* ---------------------------------------------------------------------------
   Legal pages (privacy, terms)
   --------------------------------------------------------------------------- */

.legal-main {
  width: min(760px, calc(100% - 32px)); margin: 0 auto;
  padding: 56px 0 96px;
  display: flex; flex-direction: column; gap: 40px;
}
.legal-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-display); font-size: clamp(34px, 5vw, 46px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
}
.legal-updated { margin: 0; font-size: 14px; color: var(--muted); }
.legal-lede { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.legal-summary {
  padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--paper-soft);
}
.legal-summary h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.legal-summary ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.legal-summary li { font-size: 15px; line-height: 1.55; color: var(--text-body); }

.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.legal-toc a {
  padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text-2);
  font-size: 13px; text-decoration: none;
}
.legal-toc a:hover { background: var(--paper-tint); color: var(--text); }

.legal-body { display: flex; flex-direction: column; gap: 40px; }
.legal-section { scroll-margin-top: 24px; }
.legal-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -0.02em;
}
.legal-section h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; }
.legal-section p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--text-body); }
.legal-section ul { margin: 0 0 12px; padding-left: 20px; }
.legal-section li { margin-bottom: 9px; font-size: 15px; line-height: 1.6; color: var(--text-body); }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-section a { color: var(--text); }
.legal-section > :last-child, .legal-section li:last-child { margin-bottom: 0; }

.legal-table {
  margin: 0 0 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  overflow-x: auto;
}
.legal-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  text-align: left; vertical-align: top; line-height: 1.55; font-weight: 400;
}
.legal-table thead th {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: var(--paper-tint);
}
.legal-table tbody th { color: var(--text); font-weight: 600; }
.legal-table tbody td { color: var(--text-body); }
.legal-table tbody tr:last-child th, .legal-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .legal-main { padding: 36px 0 64px; gap: 32px; }
  .legal-summary { padding: 20px 18px; }
  .legal-table th, .legal-table td { padding: 12px 14px; }
}
