/* ═══════════════════════════════════════════════════════════
   legal.css — Privacy Policy & Terms pages
   ═══════════════════════════════════════════════════════════ */

/* ─── Page Layout ────────────────────────────────────────── */
.legal-page {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 80px);
  padding: 0 0 80px;
}

.legal-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 40px 0;
}

/* ─── Header ─────────────────────────────────────────────── */
.legal-header {
  text-align: center;
  margin-bottom: 50px;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--brass-light);
  text-shadow: 0 0 24px rgba(181,129,58,0.4);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.8rem;
  color: var(--iron-light);
  font-style: italic;
  margin-top: 12px !important;
}

/* ─── Body ───────────────────────────────────────────────── */
.legal-body {
  background: linear-gradient(160deg, rgba(36,30,16,0.92), rgba(24,20,10,0.96));
  border: 1px solid var(--brass-dark);
  border-radius: 6px;
  padding: 52px 56px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Inner border detail */
.legal-body::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(181,129,58,0.15);
  border-radius: 3px;
  pointer-events: none;
}

/* Corner rivets */
.legal-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 5px at 14px 14px, #b5813a 60%, transparent 60%),
    radial-gradient(circle 5px at calc(100% - 14px) 14px, #b5813a 60%, transparent 60%),
    radial-gradient(circle 5px at 14px calc(100% - 14px), #b5813a 60%, transparent 60%),
    radial-gradient(circle 5px at calc(100% - 14px) calc(100% - 14px), #b5813a 60%, transparent 60%);
  border-radius: 6px;
  pointer-events: none;
}

/* ─── Intro box ──────────────────────────────────────────── */
.legal-intro {
  background: rgba(181,129,58,0.06);
  border-left: 3px solid var(--brass);
  border-radius: 0 3px 3px 0;
  padding: 20px 24px;
  margin-bottom: 38px;
}

.legal-intro p {
  font-size: 0.92rem;
  color: var(--parchment-dark);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-intro p:last-child { margin-bottom: 0; }

.legal-intro a {
  color: var(--brass-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Sections ───────────────────────────────────────────── */
.legal-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(181,129,58,0.12);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-family: 'IM Fell English SC', serif;
  font-size: 1.1rem;
  color: var(--brass-light);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.legal-section p {
  font-size: 0.88rem;
  color: var(--parchment-dark);
  line-height: 1.85;
  margin-bottom: 12px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
}

.legal-section ul li {
  font-size: 0.88rem;
  color: var(--parchment-dark);
  line-height: 1.75;
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid rgba(181,129,58,0.08);
  position: relative;
}

.legal-section ul li:last-child { border-bottom: none; }

.legal-section ul li::before {
  content: '⚙';
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.7rem;
  color: var(--brass-dark);
}

.legal-section a {
  color: var(--brass-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-section a:hover { color: var(--parchment); }

.legal-section strong { color: var(--parchment); }

.legal-section em { color: var(--brass); font-style: italic; }

/* ─── Bottom nav ─────────────────────────────────────────── */
.legal-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.legal-footer-nav .btn-secondary {
  font-size: 0.9rem;
  padding: 12px 28px;
  text-decoration: none;
  display: inline-block;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .legal-inner  { padding: 40px 20px 0; }
  .legal-body   { padding: 32px 24px; }
  .legal-footer-nav { flex-direction: column; align-items: stretch; text-align: center; }
}
