/* BetterSpace Privacy Policy - Stylesheet */

:root {
  --primary: #4A90D9;
  --primary-dark: #2c6fad;
  --secondary: #6ec6a8;
  --background: #f7f9fc;
  --surface: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #7a7a9a;
  --border: #e0e4ef;
  --shadow: 0 2px 16px rgba(74, 144, 217, 0.08);
  --radius: 12px;
  --max-width: 820px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
}

.header-logo svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 10px;
}

header p.subtitle {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto;
}

.last-updated {
  display: inline-block;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 48px 24px 72px;
}

/* ── Table of Contents ── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.toc h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.toc ol {
  padding-left: 20px;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ── Sections ── */
.policy-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.policy-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  flex-shrink: 0;
}

.section-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.policy-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.policy-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul,
.policy-section ol {
  padding-left: 22px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.policy-section li {
  margin-bottom: 8px;
}

/* ── Highlight box ── */
.highlight-box {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0faf6 100%);
  border: 1px solid #c5e0f5;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 18px 0;
  color: var(--text-secondary);
}

.highlight-box strong {
  color: var(--primary-dark);
}

/* ── Contact card ── */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: #fff;
  margin-top: 18px;
}

.contact-card svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  opacity: 0.9;
  margin-top: 2px;
}

.contact-card h3 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.contact-card a {
  color: #fff;
  font-weight: 600;
}

/* ── Footer ── */
footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.88rem;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  header {
    padding: 36px 16px 30px;
  }

  .policy-section {
    padding: 24px 20px;
  }

  .toc {
    padding: 20px;
  }

  .contact-card {
    flex-direction: column;
    padding: 22px 20px;
  }
}
