/**
 * legal.css — shared styles for privacy.html and terms.html
 */

:root {
  --blue:      #1B88D4;
  --blue-dark: #0D5A8F;
  --gold:      #FDB927;
  --bg:        #f4f7fb;
  --surface:   #ffffff;
  --text:      #0f1923;
  --muted:     #536878;
  --border:    #dde6ef;
  --radius:    14px;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.header-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  margin-bottom: 1.8rem;
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.header-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.25rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.header-updated {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.6rem;
}

/* ── LANG TOGGLE ── */
.lang-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.lang-btn {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active,
.lang-btn:hover {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
}

/* ── MAIN CONTENT ── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.policy-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ── TYPOGRAPHY INSIDE CARD ── */
.policy-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.policy-card h2:first-child { margin-top: 0; }
.policy-card h2::before {
  content: '';
  display: inline-block;
  width: 4px; height: 1em;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.policy-card h3 {
  font-weight: 700;
  color: var(--text);
  margin: 1.2rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  opacity: 0.7;
}
.policy-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.policy-card ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.8rem;
}
.policy-card ul li {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.25rem 0 0.25rem 1.4rem;
  position: relative;
}
.policy-card ul li::before {
  content: '▸';
  color: var(--blue);
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  top: 0.45rem;
}
.policy-card ul.prohibited li::before {
  content: '✕';
  color: #e74c3c;
  font-size: 0.68rem;
  top: 0.48rem;
}
.policy-card strong { color: var(--text); font-weight: 600; }
.policy-card a { color: var(--blue); text-decoration: none; font-weight: 500; }
.policy-card a:hover { text-decoration: underline; }

.note {
  background: #fff8e6;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-top: 0.8rem;
  color: #7a5c00;
}

/* Language blocks */
.lang-block { display: none; }
.lang-block.visible { display: block; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: gap 0.2s;
}
.back-link:hover { gap: 0.65rem; }
.back-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.83rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--blue); text-decoration: none; }
