/* ===== Privacy Policy Page Styles ===== */
:root {
  --bg: #ffffff;
  --text: #343d50;          /* gray-900 */
  --muted: #6b7280;         /* gray-500 */
  --border: #e5e7eb;        /* gray-200 */
  --card: #f9fafb;          /* gray-50 */
  --link: #2553eb;          /* blue-700 */
  --accent: #2563eb;        /* blue-600 */
  --accent-2: #60a5fa;      /* blue-400 */
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

  /* Height of your global sticky site header; adjust if needed */
  --site-header-height: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #ffffff;
    --text: #2c323f;
    --muted: #a6abb3;
    --border: #b4b4b4;
    --card: #f3f3f3;
    --link: #3d88dd;
    --accent: #1a69c9;
    --accent-2: #144697;
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.116);
  }
}

html, body {
  background: var(--bg);
  color: var(--text);
}

.privacy-policy-container {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 28px) clamp(14px, 2vw, 24px);
}

/* Header */
.policy-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 16px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.089);
}

.policy-header h1 {
  margin: 0 0 4px 0;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.policy-header .subtitle {
  margin: 0 0 6px 0;
  opacity: 0.95;
  font-size: 1rem;
}

.last-updated {
  margin: 6px 0 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Content */
.policy-content {
  margin-top: clamp(16px, 2vw, 24px);
}

.intro-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(14px, 2.2vw, 18px);
  box-shadow: var(--shadow);
}

.policy-sections {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  margin-top: clamp(14px, 2vw, 20px);
}

.policy-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.policy-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

.policy-section h2 {
  margin: 0 0 10px 0;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.3;
}

.policy-section p {
  margin: 8px 0;
}

.policy-section ul {
  margin: 6px 0 8px 1.25rem;
  padding: 0;
}

.policy-section li {
  margin: 6px 0;
  line-height: 1.6;
}

/* Links & focus */
a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Contact info block */
.contact-info p {
  margin: 4px 0;
}

/* Make it readable when printed */
@media print {
  .policy-header {
    color: #000;
    background: none;
    border: none;
    box-shadow: none;
  }
  .intro-section,
  .policy-section {
    break-inside: avoid;
    box-shadow: none;
    background: #fff;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }
}

/* Subtle hover elevation for desktop */
@media (hover: hover) and (pointer: fine) {
  .policy-section {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
  .policy-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  }
}
