/* ===================================================================
   GoSites Legal Pages CSS (Privacy Policy / Terms of Service)
   =================================================================== */

:root {
  --brand: #6C47FF;
  --brand-dark: #5534E0;
  --brand-light: #EEE9FF;
  --surface: #0A0A0F;
  --panel: #13131A;
  --card: #1C1C26;
  --border: #2A2A3A;
  --text: #F0F0F8;
  --text-muted: #8888A0;
  --text-dim: #555570;
  --accent: #FF6B35;
  --accent2: #00D4AA;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 800px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  margin: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ---- Top nav ---- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.legal-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.legal-logo:hover { text-decoration: none; }

.legal-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.legal-nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.legal-nav-links a.active {
  color: var(--text);
}

/* ---- Page ---- */
.legal-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal-page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 16px;
}

.legal-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 16px;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-meta span + span::before {
  content: ' · ';
}

/* ---- Content sections ---- */
.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
  padding-top: 8px;
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.legal-section ul, .legal-section ol {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-section li {
  margin-bottom: 6px;
}

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

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ---- Contact card ---- */
.legal-contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 48px;
}

.legal-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.legal-contact-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.legal-contact-card a {
  color: var(--brand);
  font-weight: 500;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 12px 0 20px;
}

.legal-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
}

.legal-table td {
  padding: 10px 14px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  vertical-align: top;
}

.legal-table tr:hover td { background: rgba(108, 71, 255, 0.04); }

/* ---- Footer ---- */
.legal-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-footer-left {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.legal-footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.legal-footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .legal-nav-links { display: none; }
  .legal-title { font-size: 1.75rem; }
  .legal-page { padding: 32px 20px 64px; }
  .legal-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}