/* ==========================================================
   legal.css — Dedicated styles for Privacy Policy & Terms
   Stand-alone file (no dependency on styles.css)
   ========================================================== */

/* Core variables */
:root {
  --bg: #fafafa;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #0f172a;
  --accent-2: #2563eb;
  --accent-3: #f97316;
  --card-bg: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --max-width: 850px;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Section wrapper */
main.wrap section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  position: relative;
  z-index: 1;
}

/* Decorative subtle watermark background */
main.wrap section::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center,
    rgba(37,99,235,0.07) 0%,
    rgba(249,115,22,0.05) 60%,
    transparent 100%);
  transform: translateX(-50%);
  filter: blur(80px);
  z-index: -1;
}

/* Headings */
main.wrap h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

main.wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  position: relative;
  padding-left: 1.5rem;
}

main.wrap h3::before {
  content: "§";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Lead paragraph */
main.wrap .lead {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Card blocks */
main.wrap .card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem;
  margin-bottom: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}

main.wrap .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Links inside legal text */
main.wrap a {
  color: var(--accent-2);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.25s ease;
}

main.wrap a:hover {
  color: var(--accent-3);
  text-decoration: none;
}

/* Footer links */
footer p a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

footer p a:hover {
  color: var(--accent-2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  main.wrap section {
    padding: 2.5rem 1rem;
  }

  main.wrap h2 {
    font-size: 2rem;
  }

  main.wrap h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  main.wrap h2 {
    font-size: 1.75rem;
  }

  main.wrap .lead {
    font-size: 1.05rem;
  }

  main.wrap .card {
    padding: 1.5rem 1.25rem;
  }
}
