/* ============================================================
   agrisphere — Legal Subpage Styles
   ============================================================ */

/* === HERO === */
.legal-page { padding-top: 68px; }

.lp-hero {
  padding: 80px 32px 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(190,242,100,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.lp-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 12px 0 16px;
}
.lp-hero--danger { background: linear-gradient(180deg, rgba(239,68,68,0.07) 0%, transparent 100%); }
.section-label--danger { background: rgba(239,68,68,0.12); color: #f87171; border-color: rgba(239,68,68,0.25); }

.lp-meta {
  font-size: 14px;
  color: var(--text-faint);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.lp-meta strong { color: var(--text-muted); }

/* === BODY LAYOUT === */
.lp-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 32px 100px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* === TABLE OF CONTENTS === */
.lp-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.lp-toc h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime);
  margin-bottom: 16px;
}
.lp-toc ol {
  list-style: decimal;
  padding-left: 18px;
  columns: 2;
  gap: 24px;
}
.lp-toc li { margin-bottom: 8px; }
.lp-toc a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.lp-toc a:hover { color: var(--lime); }

/* === SECTIONS === */
.lp-body section { display: flex; flex-direction: column; gap: 14px; }
.lp-body section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.lp-body p { font-size: 15px; color: var(--text-muted); line-height: 1.85; }
.lp-body p a, .lp-body li a { color: var(--lime); }
.lp-body p a:hover, .lp-body li a:hover { text-decoration: underline; }
.lp-body strong { color: #e2e8f0; }
.lp-body em { color: var(--text-faint); }
.lp-body ul {
  list-style: disc;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-body li { font-size: 15px; color: var(--text-muted); line-height: 1.75; }

/* === TABLE === */
.lp-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.lp-table-wrap table { width: 100%; border-collapse: collapse; }
.lp-table-wrap thead { background: rgba(255,255,255,0.04); }
.lp-table-wrap th {
  padding: 14px 18px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.lp-table-wrap td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
  line-height: 1.6;
}
.lp-table-wrap tr:last-child td { border-bottom: none; }

/* === WARNING BOX === */
.lp-warning {
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 14px;
  color: #fde68a;
  line-height: 1.75;
}
.lp-warning--danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}
.lp-warning strong { color: #fef08a; }
.lp-warning--danger strong { color: #fca5a5; }

/* === DATA SAFETY GRID === */
.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.ds-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.ds-card:hover { border-color: var(--border-lime); }
.ds-card.ds-required { border-color: rgba(190,242,100,0.2); }
.ds-icon { font-size: 28px; }
.ds-card strong { font-size: 14px; color: var(--text); font-weight: 700; }
.ds-card p { font-size: 12px; color: var(--text-faint); line-height: 1.6; }
.ds-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}
.ds-badge--required { background: var(--lime-dim); color: var(--lime); border: 1px solid var(--border-lime); }
.ds-badge--optional { background: rgba(148,163,184,0.1); color: var(--text-faint); border: 1px solid var(--border); }

/* === SECURITY BADGES === */
.sec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.sec-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid var(--border-lime);
  background: var(--lime-dim);
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
}

/* === DELETION PAGE === */
.deletion-checklist { display: flex; flex-direction: column; gap: 14px; }
.dc-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.dc-check {
  width: 28px; height: 28px;
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.dc-item strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.dc-item p { font-size: 13px; color: var(--text-faint); margin: 0; line-height: 1.5; }

.method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.method-card--primary { border-color: var(--border-lime); }
.method-num {
  width: 36px; height: 36px;
  background: var(--lime-dim);
  color: var(--lime);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
  border: 1px solid var(--border-lime);
}
.method-card h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.method-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 20px; width: 2px; background: var(--border); }
.tl-step { display: flex; gap: 20px; align-items: flex-start; padding: 0 0 28px; position: relative; }
.tl-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-lime);
  flex-shrink: 0;
  margin-top: 3px;
  margin-left: -8px;
}
.tl-dot--done { background: var(--lime); border-color: var(--lime); }
.tl-step strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.tl-step p { font-size: 13px; color: var(--text-faint); margin: 0; line-height: 1.5; }

/* === SUPPORT PAGE === */
.support-contact-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.support-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.support-contact-card:hover { border-color: var(--lime); }
.support-contact-card span { font-size: 28px; flex-shrink: 0; }
.support-contact-card strong { display: block; font-size: 14px; color: var(--text); }
.support-contact-card small { font-size: 12px; color: var(--text-faint); }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-lime); }
.faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--lime); font-weight: 300; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item p a { color: var(--lime); }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .lp-body { padding: 40px 20px 80px; }
  .lp-hero { padding: 60px 20px 40px; }
  .lp-toc ol { columns: 1; }
  .method-cards { grid-template-columns: 1fr; }
  .ds-grid { grid-template-columns: 1fr 1fr; }
}
