/* ── LEGAL PAGES ── */

.legal-page {
  min-height: 100vh;
  background-color: var(--bg-color, #f9f7f4);
  color: var(--text-main, #1a1915);
}

/* Hero */
.legal-hero {
  position: relative;
  background: var(--text-main, #1a1915);
  padding: 100px 28px 64px;
  text-align: center;
  overflow: hidden;
}

/* Subtle grain/texture via pseudo */
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(200,169,126,.07) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary-color, #c8a97e);
  border: 1px solid rgba(200,169,126,.35);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.legal-hero-title {
  position: relative;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.legal-hero-title span { font-style: italic; color: var(--secondary-color, #c8a97e); }

.legal-hero-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Nav tabs */
.legal-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 36px 24px 0;
  flex-wrap: wrap;
}

.legal-nav-link {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--border-color, #e8e4de);
  color: var(--text-muted, #8a8780);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius, 4px);
  transition: var(--transition, 0.25s ease);
  background: transparent;
  cursor: pointer;
}

.legal-nav-link:hover,
.legal-nav-link.legal-nav-active {
  background: var(--text-main, #1a1915);
  border-color: var(--text-main, #1a1915);
  color: #fff;
}

/* Container */
.legal-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 28px 88px;
}

/* Doc visibility */
.legal-doc { display: none; }
.legal-doc.legal-doc-active { display: block; }

/* Update date */
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted, #8a8780);
  margin-bottom: 44px;
  padding: 8px 14px;
  background: var(--surface2, #f3f1ee);
  border-left: 3px solid var(--secondary-color, #c8a97e);
}

/* Intro */
.legal-intro {
  font-size: 1rem;
  color: var(--text-muted, #8a8780);
  line-height: 1.8;
  margin-bottom: 52px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-color, #e8e4de);
}

/* Sections */
.legal-section { margin-bottom: 44px; }

.legal-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-main, #1a1915);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #e8e4de);
  display: block;
}

.legal-section p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted, #8a8780);
  margin-bottom: 12px;
}

/* List */
.legal-list {
  margin: 12px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-list li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted, #8a8780);
  padding-left: 22px;
  position: relative;
}

.legal-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary-color, #c8a97e);
}

/* Highlight box */
.legal-highlight-box {
  background: var(--surface2, #f3f1ee);
  border: 1px solid var(--border-color, #e8e4de);
  border-left: 3px solid var(--secondary-color, #c8a97e);
  padding: 20px 24px;
  border-radius: 0 var(--radius, 4px) var(--radius, 4px) 0;
  margin: 24px 0;
}

.legal-highlight-box p {
  font-size: 0.92rem;
  color: var(--text-main, #1a1915) !important;
  margin: 0 !important;
  line-height: 1.7;
}

/* Contact box */
.legal-contact-box {
  background: var(--text-main, #1a1915);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius, 4px);
  margin-top: 52px;
  text-align: center;
}

.legal-contact-box h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--secondary-color, #c8a97e);
}

.legal-contact-box p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.legal-contact-box a {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main, #1a1915);
  background: var(--secondary-color, #c8a97e);
  padding: 12px 32px;
  text-decoration: none;
  border-radius: var(--radius, 4px);
  transition: var(--transition, 0.25s ease);
}

.legal-contact-box a:hover { opacity: 0.85; }

/* Legal footer */
.legal-footer {
  text-align: center;
  padding: 28px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8a8780);
  border-top: 1px solid var(--border-color, #e8e4de);
}

.legal-footer a {
  color: var(--secondary-color, #c8a97e);
  text-decoration: none;
  font-weight: 400;
}

@media (max-width: 600px) {
  .legal-hero { padding: 80px 20px 48px; }
  .legal-container { padding: 36px 20px 64px; }
  .legal-contact-box { padding: 28px 20px; }
}