/* ============================================================
   Shared styles — Legal / Policy Pages
   ------------------------------------------------------------
   Used by: terms-of-use.php, privacy-policy.php

   REBRAND: rewritten for the light Team Capsule theme. Same
   selectors/structure as before so no markup changes are needed;
   colours updated from dark-glass to light surfaces.

   Requires css/variables.css to be loaded first.
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--text-body);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Background wash (formerly dark "rink-bg" gradient) ────── */
.rink-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.rink-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(46,124,246,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 100% 100%, rgba(139,92,246,0.05) 0%, transparent 60%),
    var(--page-bg);
}

/* ─── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { height: 36px; }

.nav-links { display: flex; gap: 0.5rem; align-items: center; }

.btn-nav {
  padding: 0.55rem 1.2rem;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.btn-ghost {
  color: var(--text-body);
  border: 1px solid var(--border-soft);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--text-heading); }

.btn-primary-nav {
  color: #fff;
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}
.btn-primary-nav:hover { background: #1a68e0; box-shadow: var(--shadow-md); }

/* ─── Page Body ────────────────────────────────────────────── */
.page-body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 7rem 1.5rem 5rem;
}

/* ─── Content Container ────────────────────────────────────── */
.policy-wrap {
  max-width: 820px;
  margin: 0 auto;
  animation: fadeUp 0.7s 0.1s ease both;
}

/* ─── Page Header ──────────────────────────────────────────── */
.policy-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.policy-header .section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.policy-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--text-heading);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.policy-header .updated {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Policy Card ──────────────────────────────────────────── */
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-lg);
}

/* ─── Typography ───────────────────────────────────────────── */
.policy-card h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2rem 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-soft);
}

.policy-card h2:first-child { margin-top: 0; }

.policy-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 0.9rem;
}

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

.policy-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
}

.policy-card ul li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
  padding: 0.25rem 0 0.25rem 1.4rem;
  position: relative;
}

.policy-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  opacity: 0.8;
}

.policy-card a {
  color: var(--brand-blue);
  text-decoration: none;
}
.policy-card a:hover {
  color: #1a68e0;
  text-decoration: underline;
}

.policy-card strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-soft);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--brand-blue); }

/* ─── Footer content patterns ───────────────────────────────
   Extracted from identical inline style="..." attributes that
   were duplicated across terms-of-use.php and privacy-policy.php
   (and also login.php / register.php / index.php — see the
   matching block in css/site-shell.css). Purely static/layout,
   no JS or dynamic values involved. */
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-logo { height: 22px; opacity: 0.6; }
.footer-links { display: flex; gap: 1.5rem; }

/* ─── Icon spacing inside the page's "Legal" section label ─── */
.label-icon { margin-right: 0.4rem; }

/* ─── "You are here" footer link state ──────────────────────
   Extracted from an identical inline style override applied to
   whichever footer link represents the page currently being
   viewed (e.g. "Privacy Policy" while on privacy-policy.php). */
.footer-link-current { color: var(--brand-blue); }

/* ─── Animations ───────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0.9rem 1.2rem; }
  .policy-card { padding: 1.5rem; }
  footer { padding: 1.2rem; }
}
