/**
 * SCRIBONAUTES — Page Conditions Générales d'Utilisation
 * static/css/pages/terms.css
 * ============================================================
 */

/* ============================================================
   HERO
   ============================================================ */
.terms-hero {
  background: var(--accent-light);
  background-image:
    radial-gradient(ellipse at 80% 50%, rgba(92, 74, 58, 0.06) 0%, transparent 55%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.terms-hero-inner {
  max-width: 680px;
}

.terms-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}

.terms-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.terms-hero-meta {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.terms-hero-meta strong {
  color: var(--text-mid);
}

.terms-hero-intro {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-mid);
  line-height: 1.7;
  border-left: 3px solid var(--accent-mid);
  padding-left: 16px;
  margin: 0;
}

/* ============================================================
   SOMMAIRE
   ============================================================ */
.terms-nav-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.terms-toc {
  max-width: 760px;
}

.terms-toc-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.terms-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 32px;
  counter-reset: none;
}

.terms-toc-list li {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
}

.terms-toc-list a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--trans-fast);
}

.terms-toc-list a:hover {
  color: var(--green-hover);
  text-decoration: underline;
}

/* ============================================================
   BODY / LAYOUT
   ============================================================ */
.terms-body {
  padding: 64px 0 80px;
  background: var(--bg);
}

.terms-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================================
   SECTION
   ============================================================ */
.terms-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 28px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.terms-section:last-child {
  border-bottom: none;
}

.terms-section-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--border-strong);
  line-height: 1;
  padding-top: 4px;
  text-align: right;
  letter-spacing: -0.02em;
  user-select: none;
}

.terms-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.terms-subsection-title {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
}

.terms-section-body p {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}

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

.terms-section-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-section-body a:hover {
  color: var(--green-hover);
}

/* ============================================================
   LISTES
   ============================================================ */
.terms-list {
  padding-left: 0;
  margin: 12px 0 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-list li {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-mid);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.terms-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-mid);
  font-weight: 600;
}

.terms-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   HIGHLIGHTS
   ============================================================ */
.terms-highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.terms-highlight p {
  margin: 6px 0 0 !important;
  font-size: var(--text-sm) !important;
}

.terms-highlight strong {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  display: block;
}

.terms-highlight-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.terms-highlight--warning {
  background: var(--warning-light);
  border: 1px solid rgba(214, 137, 16, 0.25);
}

.terms-highlight--warning strong {
  color: var(--warning);
}

.terms-highlight--info {
  background: var(--green-light);
  border: 1px solid var(--green-border);
}

.terms-highlight--info strong {
  color: var(--green);
}

/* ============================================================
   CONTACT
   ============================================================ */
.terms-contact-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 20px 0;
}

.terms-contact-icon {
  font-size: 1.2rem;
}

.terms-contact-email {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--green) !important;
  text-decoration: none !important;
}

.terms-contact-email:hover {
  text-decoration: underline !important;
}

.terms-contact-note {
  font-size: var(--text-sm) !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

/* ============================================================
   FOOTER BAND
   ============================================================ */
.terms-footer-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.terms-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.terms-footer-text {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  max-width: 480px;
}

.terms-footer-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .terms-hero { padding: 48px 0 40px; }

  .terms-toc-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .terms-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 36px 0;
  }

  .terms-section-number {
    text-align: left;
    font-size: var(--text-xl);
    color: var(--accent-mid);
  }

  .terms-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .terms-toc-list {
    grid-template-columns: 1fr;
  }

  .terms-footer-actions {
    flex-direction: column;
    width: 100%;
  }

  .terms-footer-actions .btn {
    text-align: center;
    justify-content: center;
  }
}
