/* Shared styles for static legal/info pages — aligned with Vue app shell (gradient, fonts, header) */

:root {
  --page-max: 1000px;
  /* Vue home uses the same value for .home side padding — not applied to this header, see .site-header .wrap */
  --page-gutter-x: clamp(16px, 4vw, 28px);
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --surface: rgba(255, 255, 255, 0.97);
  --surface-solid: #ffffff;
  --ink: #1e1b4b;
  --muted: rgba(30, 27, 75, 0.68);
  --border: rgba(118, 75, 162, 0.22);
  --accent: #5b21b6;
  --accent-hover: #4c1d95;
  --accent-dark: #4c1d95;
  --link: #5b21b6;
  --link-hover: #4c1d95;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #1f2937;
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}

/* ---------- Header: 1000px bar aligns with main (no inner horizontal padding on the bar) ---------- */
/* Isolate from body { line-height: 1.65 } below — otherwise static pages’ header is taller than the Vue shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  line-height: 1.2;
}

.site-header .wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px 0;
  box-sizing: border-box;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.logo:hover {
  opacity: 0.92;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Main content (1000px column) ---------- */
main {
  max-width: var(--page-max);
  margin: 20px auto 0;
  padding: 40px clamp(20px, 3vw, 36px) 48px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.page-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}

p {
  margin-bottom: 14px;
  color: #374151;
}

ul,
ol {
  margin-bottom: 14px;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 8px;
  color: #374151;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.highlight {
  background: rgba(102, 126, 234, 0.12);
  border-left: 3px solid var(--gradient-start);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
}

.contact-box {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin-top: 28px;
}

.contact-box h3 {
  margin-top: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 28px;
  padding: 36px clamp(16px, 4vw, 32px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .wrap {
  max-width: var(--page-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 600;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.55;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-footer a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
  main {
    padding: 28px 18px 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
