/* ============================================================
   Ekush Ponji — privacy.css
   Structure:
   1.  Variables (inherits from components.css)
   2.  Page Base
   3.  Header
   4.  Policy Container
   5.  Quick Summary
   6.  Policy Sections
   7.  Third Party Table
   8.  Permissions List
   9.  Contact Block
   10. Responsive
============================================================ */


/* ─── 1. VARIABLES (extends components.css) ────────────────── */
:root {
  --green:          #006B54;
  --green-dark:     #00513F;
  --green-light:    #E8F5F1;
  --green-mid:      #CCE8DB;
  --green-dim:      rgba(0, 107, 84, 0.1);
  --deep-red:       #CC2200;

  --white:          #FFFFFF;
  --off-white:      #FAFCFB;
  --surface:        #F4F9F7;
  --border:         #E0EDE8;
  --text-primary:   #0D1F1A;
  --text-secondary: #4A6259;
  --text-muted:     #8AA89E;

  --font-display:   'Syne', sans-serif;
  --font-body:      'Plus Jakarta Sans', sans-serif;

  --radius-sm:      6px;
  --radius:         12px;
  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:      0 2px 8px rgba(0, 107, 84, 0.08);
  --shadow:         0 8px 32px rgba(0, 107, 84, 0.12);
}


/* ─── 2. 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.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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


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

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

.policy-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-weight: 700;
  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: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
  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;
}


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

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


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

.summary-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.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.85rem;
  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; }


/* ─── 6. 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-display);
  font-size: 1.4rem;
  color: var(--green-mid);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-top: 4px;
}

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

.section-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  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; }

.contact-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

.contact-box svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  flex-shrink: 0;
}

.contact-box a {
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
}


/* ─── 7. 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(--surface);
  font-weight: 700;
  font-size: 0.75rem;
  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;
}


/* ─── 8. PERMISSIONS LIST ───────────────────────────────────── */
.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.permission-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: flex-start;
}

.permission-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--green-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.permission-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
}

.permission-text h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.permission-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}


/* ─── 9. CONTACT BLOCK ──────────────────────────────────────── */
.contact-block {
  background: var(--surface);
  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.75rem;
  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; }


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

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

  .section-number {
    font-size: 0.75rem;
    color: var(--green);
    letter-spacing: 0.2em;
  }

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

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

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