/* Tsop Tech — shared stylesheet for /legal/ pages. Mirrors the brand tokens
   already established in templates/nexus/css/custom.css (blue #249be5,
   neutral scale) so these pages read as part of the site, not a bolt-on. */

:root {
  --neutral-50: #fbf9fa;
  --neutral-100: #f4f5f7;
  --neutral-200: #e4e4e7;
  --neutral-300: #d0d5dd;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;

  --brand: #249be5;
  --brand-dark: #0f6aa8;

  --bg: var(--neutral-50);
  --surface: #ffffff;
  --border: var(--neutral-200);
  --text: var(--neutral-900);
  --text-muted: var(--neutral-500);
  --fill-bg: #eef6fc;
  --fill-text: var(--brand-dark);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark span { color: var(--brand); }
.wordmark:hover { text-decoration: none; opacity: 0.85; }

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.site-header nav a:hover { color: var(--brand-dark); }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 700;
  margin: 0 0 6px;
  text-wrap: balance;
  color: var(--text);
}

.updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 36px;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.6em;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5em 0 0.5em;
}

p, li { max-width: 68ch; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.5em; }

.fill {
  color: var(--fill-text);
  background: var(--fill-bg);
  padding: 0.03em 0.4em;
  border-radius: 3px;
  font-style: normal;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5em 0 1.6em;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.table-wrap { overflow-x: auto; }

.callout {
  margin: 1.2em 0;
  padding: 14px 18px;
  background: var(--fill-bg);
  border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0;
  font-size: 0.94rem;
  color: var(--neutral-800);
}

.card-index {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.card-index a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
}
.card-index a:hover { border-color: var(--brand); }
.card-index .card-title { font-weight: 700; margin-bottom: 4px; }
.card-index .card-desc { font-size: 0.88rem; color: var(--text-muted); }

hr.div { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

footer.legal-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
}
footer.legal-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
footer.legal-footer .links a { color: var(--text-muted); text-decoration: none; }
footer.legal-footer .links a:hover { color: var(--brand-dark); text-decoration: underline; }
footer.legal-footer .copyright { font-size: 0.8rem; color: var(--text-muted); }
