/* ============================================================
   PENSION ZUR ROSE — LEGAL PAGES STYLESHEET
   Ergänzt style.css für Impressum, AGB, Datenschutz
   ============================================================ */

/* ── Page setup ──────────────────────────────────────────── */
.legal-page {
  background-color: var(--clr-cream);
}

/* ── Back button in nav ──────────────────────────────────── */
.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}
.legal-back-btn svg {
  width: 15px;
  height: 15px;
}

/* ── Hero banner ─────────────────────────────────────────── */
.legal-hero {
  background: var(--clr-forest);
  padding: calc(var(--sp-16) + var(--sp-3)) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 70C23.4 70 10 56.6 10 40S23.4 10 40 10s30 13.4 30 30-13.4 30-30 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.legal-hero .section-eyebrow {
  color: var(--clr-gold-light);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--clr-cream);
  line-height: 1.1;
  margin: 0;
}

/* ── Content area ────────────────────────────────────────── */
.legal-main {
  min-height: 80vh;
}

.legal-content {
  padding: var(--sp-10) 0 var(--sp-12);
}

/* ── Card ────────────────────────────────────────────────── */
.legal-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  padding: var(--sp-8) var(--sp-8);
  box-shadow: var(--shadow-sm);
  max-width: 820px;
  margin: 0 auto var(--sp-6);
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--clr-text-mid);
  line-height: 1.75;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-5);
}

/* ── Sections ────────────────────────────────────────────── */
.legal-card section {
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--clr-border);
}
.legal-card section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--clr-forest);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

/* AGB paragraph numbers */
.agb-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--clr-gold);
  text-transform: uppercase;
  background: var(--clr-cream);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--clr-border);
  white-space: nowrap;
  flex-shrink: 0;
}

.legal-card p {
  font-size: 0.95rem;
  color: var(--clr-text-mid);
  line-height: 1.75;
  margin-bottom: var(--sp-2);
}
.legal-card p:last-child { margin-bottom: 0; }

.legal-card ul {
  list-style: none;
  margin: var(--sp-2) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-card ul li {
  font-size: 0.92rem;
  color: var(--clr-text-mid);
  line-height: 1.6;
  padding-left: var(--sp-3);
  position: relative;
}
.legal-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--clr-sage);
  border-radius: 50%;
  flex-shrink: 0;
}

.legal-card a {
  color: var(--clr-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.legal-card a:hover { color: var(--clr-sage); }

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

.legal-date {
  font-size: 0.8rem !important;
  color: var(--clr-text-muted) !important;
  font-style: italic;
  margin-top: var(--sp-3) !important;
}

/* ── Footer nav ──────────────────────────────────────────── */
.legal-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 820px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.legal-footer-nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal-footer-nav .btn svg {
  width: 16px;
  height: 16px;
}

.legal-links {
  display: flex;
  gap: var(--sp-3);
}
.legal-links a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: color var(--t-fast);
  text-decoration: none;
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 1px;
}
.legal-links a:hover { color: var(--clr-forest); border-color: var(--clr-forest); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-card {
    padding: var(--sp-4) var(--sp-3);
    border-radius: var(--radius-lg);
  }
  .legal-card h2 {
    flex-wrap: wrap;
    font-size: 1.2rem;
  }
  .legal-footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
