/* ============================================================
   Jhuri — legal.css
   Shared styles for privacy.html and terms.html
   Structure:
   1.  Page Base
   2.  Header
   3.  Policy Container
   4.  Quick Summary
   5.  Policy Sections
   6.  Third Party Table
   7.  Contact Block
   8.  Responsive
============================================================ */


/* ─── 1. PAGE BASE ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}


/* ─── 2. HEADER ─────────────────────────────────────────────── */
.policy-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 100px 5vw 4rem;
}

.policy-header-inner {
  max-width: 780px;
  margin: 0 auto;
}

.policy-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.1;
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.policy-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.policy-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 660px;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}


/* ─── 3. POLICY CONTAINER ───────────────────────────────────── */
.policy-main { padding: 0; }

.policy-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 5vw 6rem;
}


/* ─── 4. QUICK SUMMARY ──────────────────────────────────────── */
.policy-summary {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
}

.summary-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
}

.summary-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.summary-item.good {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green-mid);
}

.summary-item.good svg { stroke: var(--green); }

.summary-item.neutral {
  background: #FFF8E6;
  color: #7A5C00;
  border: 1px solid #FFE9A0;
}

.summary-item.neutral svg { stroke: #C49000; }


/* ─── 5. POLICY SECTIONS ────────────────────────────────────── */
.policy-section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.section-number {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--green-mid);
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.section-body h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.section-body h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.section-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

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

.section-body ul {
  margin: 0.6rem 0 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-body ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}

.section-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.section-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.section-body a:hover { opacity: 0.75; }


/* ─── 6. THIRD PARTY TABLE ──────────────────────────────────── */
.third-party-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.tp-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.tp-row:last-child { border-bottom: none; }

.tp-header {
  background: var(--cream);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-row span { color: var(--text-secondary); }

.tp-row a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ─── 7. CONTACT BLOCK ──────────────────────────────────────── */
.contact-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.2rem 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child { border-bottom: none; }

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 80px;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.contact-link:hover { opacity: 0.75; }


/* ─── 8. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 640px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }

  .policy-section {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .section-number {
    font-size: 0.72rem;
    color: var(--orange-dark);
    letter-spacing: 0.2em;
  }

  .tp-row { grid-template-columns: 1fr 1fr; }

  .tp-row span:nth-child(2),
  .tp-header span:nth-child(2) { display: none; }
}

@media (max-width: 420px) {
  .summary-grid { grid-template-columns: 1fr; }
}
