/* ================================================================
   legal.css — Terms, Privacy, Support pages
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 80px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }
code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ink);
}

/* Nav */
.navwrap {
  position: fixed;
  inset: 0 0 auto 0;
  height: 80px;
  z-index: 100;
  background: rgba(244,242,236,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,229,218,0.7);
}

/* Layout */
.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 32px 120px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 64px;
  align-items: start;
}
.doc { min-width: 0; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.stamp { margin-top: 16px; font-size: 12.5px; color: var(--muted2); display: flex; gap: 16px; flex-wrap: wrap; }
.summary {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
}
.summary h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 12px;
  font-weight: 600;
}
.summary ul { margin: 0; padding-left: 18px; }
.summary li { margin: 6px 0; color: var(--muted); font-size: 13.5px; }
.summary li b { color: var(--ink); font-weight: 600; }

h2.sec {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 56px 0 0;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
h2.sec:first-of-type { border-top: none; padding-top: 0; margin-top: 40px; }
h2.sec .n { color: var(--muted2); font-size: 0.7em; margin-right: 10px; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink); margin: 28px 0 0; }
p { color: var(--muted); margin: 12px 0 0; }
ul, ol { color: var(--muted); margin: 12px 0 0; padding-left: 22px; }
li { margin: 6px 0; }
li b, p b { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0 0; }

.note {
  margin-top: 20px;
  border-left: 2.5px solid var(--line2);
  background: var(--panel2);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
}
.note p { margin: 0; color: var(--muted); }
.note.warn { border-left-color: var(--amber); background: rgba(245,158,11,0.08); }

/* Table */
.tw { overflow-x: auto; margin-top: 16px; }
table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px;
  border-bottom: 1px solid rgba(232,229,218,0.5);
  color: var(--muted);
  vertical-align: top;
}
td b { color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Sidebar / TOC */
.aside {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.aside .lab {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted2);
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--mono);
}
.aside a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.aside a:hover { color: var(--ink); border-left-color: var(--line2); }
.aside a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }

/* Support page specifics */
.support-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 32px 0; }
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.support-card:hover { transform: translateY(-3px); border-color: var(--line2); text-decoration: none; }
.support-card h3 { font-size: 15px; font-weight: 700; margin: 12px 0 6px; color: var(--ink); }
.support-card p { font-size: 13px; color: var(--muted); margin: 0; }
.support-card .icon { font-size: 28px; margin-bottom: 8px; }

/* Top nav */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 80px;
  z-index: 100;
  background: rgba(244,242,236,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,229,218,0.7);
}
.topbar .in {
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; font-family: var(--display); font-size: 20px; letter-spacing: -0.04em; }
.brand:hover { text-decoration: none; }
.brand .glyph { font-size: 20px; }
.topbar .sp { flex: 1; }
.topbar a.nav { color: var(--muted2); font-size: 13px; letter-spacing: 0.02em; font-weight: 500; }
.topbar a.nav:hover { color: var(--ink); text-decoration: none; }
.topbar a.nav.on { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 768px) {
  .page { grid-template-columns: 1fr; }
  .aside { display: none; }
  .topbar .in { padding: 0 20px; }
}

/* ---- Unified Footer (TryBounty Style) ---- */
.ow-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 48px 48px;
  color: var(--ink);
  margin-top: 80px;
}
.ow-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.ow-footer-brand-wrap { max-width: 320px; }
.ow-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  text-decoration: none;
}
.ow-footer-brand:hover { text-decoration: none; }
.ow-footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.ow-footer-nav {
  display: flex;
  gap: 64px;
}
.ow-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ow-footer-head {
  font-family: var(--display, "Plus Jakarta Sans", sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.ow-footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.ow-footer-col a:hover { color: var(--ink); text-decoration: none; }
.ow-footer-bottom {
  max-width: 1200px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.ow-footer-copy { font-family: var(--mono); }
.ow-footer-note { font-family: var(--mono); }
@media (max-width: 860px) {
  .ow-footer-inner { flex-direction: column; gap: 40px; }
  .ow-footer-nav { flex-wrap: wrap; gap: 36px; }
  .ow-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
