/* ===================================================================
   ZENKAIVERSE — LEGAL PAGES SHARED STYLES
   Requires /styles/master.css to be loaded first.
   Used by: cookie-policy, moderation-policy, privacy-policy,
            terms-of-use, impressum
   =================================================================== */

/* ---- Layout ---- */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ---- Back Link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent-primary);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ---- Page Header ---- */
.page-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 2.5rem;
}

.page-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.page-header-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.last-updated {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.72;
}

/* ---- Legal Prose ---- */
.legal-prose {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.legal-prose p {
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
}

.legal-prose p:last-child {
  margin-bottom: 0;
}

.legal-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-prose a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.legal-prose a:hover {
  text-decoration: underline;
}

.legal-prose ul,
.legal-prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}

.legal-prose li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

/* ---- Prose Sections ---- */
.prose-section {
  margin-bottom: 2.5rem;
}

.prose-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-left: 0.85rem;
  position: relative;
}

.prose-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.prose-section h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ---- Content Card ---- */
.content-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.25rem 0;
}

.content-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.content-card p,
.content-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.content-card ul {
  padding-left: 1.3rem;
  margin-bottom: 0.75rem;
}

.content-card li {
  margin-bottom: 0.35rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* ---- Info Grid (cookie types, moderation measures, etc.) ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.25rem 0;
}

.info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.info-card:hover {
  border-color: rgba(255, 45, 45, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.info-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 45, 45, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
}

.info-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.info-card p {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.info-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.info-card li {
  font-size: 0.855rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  line-height: 1.55;
}

/* ---- Callout ---- */
.callout {
  border-left: 3px solid var(--accent-primary);
  background: rgba(255, 45, 45, 0.05);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.callout-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

.callout p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.callout a {
  color: var(--accent-primary);
  font-weight: 500;
}

/* ---- Data Table ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
}

.data-table th {
  background: var(--bg-primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.data-table td {
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ---- Section Divider ---- */
.section-divider {
  height: 1px;
  background: var(--border-primary);
  border: none;
  margin: 2rem 0;
}

/* ---- Contact Block ---- */
.contact-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
}

.contact-row {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 130px;
  flex-shrink: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
}

.contact-row a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-row a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.65;
}

/* ---- Scroll Fade-in ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .legal-container {
    padding: 1.5rem 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .contact-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .contact-label {
    min-width: unset;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.7rem 0.75rem;
  }
}
