/* Shared styles for legal pages — matches index.html branding (Dark + Gold, Inter). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #e8a020;
  --gold-light: #f5c254;
  --dark: #0c1520;
  --dark-2: #111e2e;
  --dark-3: #162030;
  --text: #e8edf2;
  --muted: #7a92a8;
  --border: rgba(255,255,255,0.08);
  --warn-bg: rgba(232,160,32,0.08);
  --warn-border: rgba(232,160,32,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  font-weight: 300;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,160,32,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(20,80,140,0.10) 0%, transparent 60%),
    var(--dark);
}

.page { position: relative; z-index: 1; }

nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid rgba(232,160,32,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-text span { color: var(--gold); }

nav.top a.back {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
}

nav.top a.back:hover {
  color: var(--gold);
  border-color: rgba(232,160,32,0.4);
}

main.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.doc .lead {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.doc h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.doc h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.doc p,
.doc li {
  font-size: 0.95rem;
  color: rgba(232,237,242,0.85);
}

.doc p { margin-bottom: 0.9rem; }
.doc ul, .doc ol { margin: 0.5rem 0 1.2rem 1.5rem; }
.doc li { margin-bottom: 0.4rem; }

.doc a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.doc a:hover { color: var(--gold); }

.doc strong { color: var(--text); font-weight: 600; }

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.callout.draft {
  background: rgba(180, 60, 60, 0.08);
  border-color: rgba(180, 60, 60, 0.35);
}

.callout strong { color: var(--gold-light); }
.callout.draft strong { color: #f08585; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--gold-light);
  font-weight: 600;
  background: rgba(232,160,32,0.04);
}

td { color: rgba(232,237,242,0.8); }

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

footer.bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.bottom p { font-size: 0.8rem; color: var(--muted); }
footer.bottom nav { display: flex; gap: 1.5rem; }
footer.bottom a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer.bottom a:hover { color: var(--gold); }

@media (max-width: 600px) {
  nav.top { padding: 1.25rem 1.25rem; }
  main.doc { padding: 2.5rem 1.25rem 3rem; }
  .doc h1 { font-size: 1.85rem; }
  footer.bottom { flex-direction: column; align-items: flex-start; }
}
