/* ===== 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: #1b3877;        /* 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: #266cbd;
    --accent: #1a69c9;
    --accent-2: #144697;
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.116);
  }
}


html, body {
  background: var(--bg);
  color: var(--text);
}

/* Start content BELOW your sticky base header */
.terms-container{
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(16px,2vw,28px) clamp(14px,2vw,24px);
  padding-top: calc(var(--site-header-height) + clamp(12px, 1.5vw, 20px));
}

/* Page header (NOT sticky) */
.terms-header{
  position: static !important;
  top: auto !important;
  z-index: auto !important;

  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,.15);
}

.terms-header h1{
  margin: 0 0 6px 0;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1.15;
}

.subtitle{
  margin: 0 0 6px 0;
  opacity: .95;
  font-size: 1rem;
}

.last-updated{
  margin: 6px 0 0 0;
  font-size: .95rem;
  opacity: .9;
}

/* Content */
.terms-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);
}

.terms-sections{
  display: grid;
  gap: clamp(12px,2vw,18px);
  margin-top: clamp(14px,2vw,20px);
}

.terms-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;

  /* Prevent anchor jump under sticky header when navigating via #id */
  scroll-margin-top: calc(var(--site-header-height) + 12px);
}

.terms-section::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .85;
}

.terms-section h2{
  margin: 0 0 10px 0;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.3;
}

.terms-section p{ margin: 8px 0; }

.terms-section ul{
  margin: 6px 0 8px 1.25rem;
  padding: 0;
  list-style: disc;
}

.terms-section li{
  margin: 6px 0;
  line-height: 1.6;
}

/* Links & focus states */
a{ color: var(--link); text-underline-offset: 3px; }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible{
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Print-friendly */
@media print{
  .terms-header{ color:#000; background:none; border:none; box-shadow:none; }
  .intro-section, .terms-section{ break-inside: avoid; box-shadow:none; background:#fff; }
  a::after{ content:" (" attr(href) ")"; font-size:.9em; }
}

/* Subtle hover elevation for desktop */
@media (hover:hover) and (pointer:fine){
  .terms-section{ transition: transform 160ms ease, box-shadow 160ms ease; }
  .terms-section:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
}
