/* ================================================================
   PDFExpert.Coupons — Legal Pages Stylesheet
   Used by: privacy.html, terms.html, disclaimer.html,
            affiliate-disclosure.html, cookies.html, about.html,
            contact.html
   ================================================================ */

.legal-page { background: #f8fafc; }

/* ── Hero ─────────────────────────────────────────────────── */
.legal-hero {
  background: #1e3a8a;
  color: #fff;
  padding: 4.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(37,99,235,.45) 0%, transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(59,130,246,.35) 0%, transparent 60%);
  pointer-events: none;
}
.legal-hero .container { position: relative; z-index: 2; }

.legal-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.legal-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .75rem;
}
.legal-hero p.lede {
  max-width: 720px;
  font-size: 1.05rem;
  opacity: .9;
  line-height: 1.6;
  margin: 0;
}
.legal-meta {
  display: inline-flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.5rem;
  font-size: .85rem;
  opacity: .85;
}
.legal-meta span { display: inline-flex; align-items: center; gap: .4rem; }

/* ── Breadcrumbs ──────────────────────────────────────────── */
.legal-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: .85rem 0;
  font-size: .85rem;
  color: #475569;
}
.legal-breadcrumb a { color: #2563eb; text-decoration: none; }
.legal-breadcrumb a:hover { text-decoration: underline; }
.legal-breadcrumb .sep { margin: 0 .5rem; opacity: .5; }
.legal-breadcrumb .current { color: #0f172a; font-weight: 600; }

/* ── Layout ───────────────────────────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Sidebar TOC ──────────────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.legal-toc h3 {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 .75rem;
  padding: 0 .25rem;
}
.legal-toc ul { list-style: none; margin: 0; padding: 0; }
.legal-toc li { margin: 0; }
.legal-toc a {
  display: block;
  padding: .5rem .75rem;
  color: #334155;
  text-decoration: none;
  font-size: .9rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.legal-toc a:hover { background: #eff6ff; color: #1e3a8a; border-left-color: #2563eb; }

/* ── Main legal content ───────────────────────────────────── */
.legal-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
  font-size: 1rem;
  line-height: 1.75;
  color: #1e293b;
}
@media (max-width: 600px) { .legal-content { padding: 1.5rem; } }

.legal-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2.25rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #e2e8f0;
  scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 1.75rem 0 .75rem;
}
.legal-content p { margin: 0 0 1rem; }
.legal-content ul, .legal-content ol {
  margin: 0 0 1.25rem 1.25rem; padding-left: .25rem;
}
.legal-content li { margin-bottom: .5rem; }
.legal-content a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: #1e3a8a; }
.legal-content strong { color: #0f172a; }

.legal-content .info-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.legal-content .info-box.warn {
  background: #fef3c7;
  border-left-color: #d97706;
}
.legal-content .info-box.danger {
  background: #fee2e2;
  border-left-color: #dc2626;
}
.legal-content .info-box p:last-child { margin-bottom: 0; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.legal-content th, .legal-content td {
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.legal-content th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

/* ── Last updated banner ───────────────────────────────────── */
.legal-updated {
  display: flex; align-items: center; gap: .6rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-bottom: 2rem;
}

/* ── Contact-page form ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}
.contact-form .field { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: .35rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
  background: #2563eb;
  color: #fff;
  border: 0;
  padding: .8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  transition: background .15s;
}
.contact-form button:hover { background: #1e3a8a; }

.contact-info {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}
.contact-info h3 { margin-top: 0; }
.contact-method {
  display: flex; gap: .9rem;
  padding: .9rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.contact-method:last-child { border-bottom: 0; }
.contact-method .icon {
  flex: 0 0 38px; height: 38px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: grid; place-items: center;
  font-size: 1rem;
}
.contact-method strong { display: block; font-size: .95rem; color: #0f172a; }
.contact-method span { font-size: .85rem; color: #64748b; }

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  font-size: .92rem;
  margin-top: 1rem;
}
.form-success.show { display: block; }

/* ── About page extras ─────────────────────────────────────── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.about-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.about-stat .num {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  color: #2563eb;
  line-height: 1;
}
.about-stat .lbl {
  font-size: .82rem;
  color: #64748b;
  margin-top: .35rem;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.team-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.team-card .avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto .75rem;
}
.team-card h4 { margin: 0 0 .15rem; font-size: 1rem; color: #0f172a; }
.team-card .role { color: #64748b; font-size: .82rem; margin-bottom: .5rem; }
.team-card p { font-size: .85rem; color: #475569; margin: 0; line-height: 1.5; }
