/* ============================================================
   POLICY PAGES — shared stylesheet
   Save to: public/css/policy.css
   Used by: privacy_policy.php, terms_conditions.php, shipping_policy.php
   ============================================================ */

/* ── HERO ── */
.policy-hero {
  background: #1b4332;
  padding: 6rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.policy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 0%,
    rgba(82, 121, 111, 0.3) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.policy-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}
.policy-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  position: relative;
  z-index: 1;
}
.policy-hero-title em {
  font-style: italic;
  color: #a8d5b5;
}
.policy-hero-meta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1.25rem;
  letter-spacing: 0.03em;
}

/* ── LAYOUT ── */
.policy-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 2rem 7rem;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 4.5rem;
  align-items: start;
}

/* ── TOC SIDEBAR ── */
.policy-toc {
  position: sticky;
  top: 90px;
}
.policy-toc-toggle {
  display: none; /* hidden on desktop */
}
.policy-toc-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bbb;
  font-weight: 700;
  margin-bottom: 0.9rem;
  display: block;
}
.policy-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.policy-toc li {
  margin-bottom: 0.35rem;
}
.policy-toc a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: #999;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.75rem;
  border-left: 2px solid transparent;
  line-height: 1.5;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
  border-radius: 0 3px 3px 0;
}
.policy-toc a:hover {
  color: #1b4332;
  border-left-color: #1b4332;
  background: rgba(27, 67, 50, 0.04);
}
.policy-toc a.active {
  color: #1b4332;
  border-left-color: #1b4332;
  font-weight: 600;
}

/* ── BODY CONTENT ── */
.policy-intro {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #444;
  line-height: 1.95;
  max-width: 68ch;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ede8e0;
}
.policy-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ede8e0;
  scroll-margin-top: 100px;
}
.policy-body h2:first-of-type {
  margin-top: 0;
}
.policy-body p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #555;
  line-height: 1.95;
  max-width: 68ch;
  margin-bottom: 1rem;
}
.policy-body ul {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #555;
  line-height: 1.85;
  max-width: 68ch;
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
}
.policy-body ul li {
  margin-bottom: 0.45rem;
}
.policy-body ul li::marker {
  color: #1b4332;
}

/* ── HIGHLIGHT BOX ── */
.policy-highlight {
  background: #f5f0e8;
  border-left: 3px solid #1b4332;
  padding: 1.35rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin-top: 2.5rem;
}
.policy-highlight p {
  font-family: var(--font-body);
  margin: 0;
  color: #333;
  font-size: 0.875rem;
  line-height: 1.9;
}
.policy-highlight strong {
  color: #1b4332;
}

/* ── RELATED LINKS ── */
.policy-related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #ede8e0;
}
.policy-related-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bbb;
  font-weight: 700;
  display: block;
  margin-bottom: 0.85rem;
}
.policy-related-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.policy-related-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: #1b4332;
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s;
}
.policy-related-links a:hover {
  gap: 0.65rem;
}

/* ── SHIPPING TABLE ── */
.shipping-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.82rem;
  margin: 0.5rem 0 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}
.shipping-table th {
  background: #1b4332;
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.shipping-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #ede8e0;
  color: #555;
  vertical-align: middle;
}
.shipping-table tr:last-child td {
  border-bottom: none;
}
.shipping-table tr:nth-child(even) td {
  background: #faf8f4;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .policy-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem 1.25rem 5rem;
  }

  /* TOC becomes accordion on mobile */
  .policy-toc {
    position: static;
    margin-bottom: 2rem;
    border: 1px solid #ede8e0;
    border-radius: 6px;
    overflow: hidden;
  }
  .policy-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #faf8f4;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
  }
  .policy-toc-toggle .policy-toc-label {
    margin: 0;
    color: #555;
    font-size: 0.65rem;
  }
  .toc-chevron {
    color: #999;
    transition: transform 0.25s;
    flex-shrink: 0;
  }
  .policy-toc-toggle[aria-expanded="true"] .toc-chevron {
    transform: rotate(180deg);
  }
  .policy-toc ul {
    display: none;
    padding: 0.5rem 0 0.75rem;
  }
  .policy-toc ul.open {
    display: block;
  }
  .policy-toc li {
    margin-bottom: 0;
  }
  .policy-toc a {
    padding: 0.4rem 1rem;
    border-left: none;
    border-radius: 0;
    font-size: 0.82rem;
  }
  .policy-toc a:hover {
    background: rgba(27, 67, 50, 0.05);
    border-left: none;
  }

  .policy-related-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .shipping-table {
    font-size: 0.78rem;
  }
  .shipping-table th,
  .shipping-table td {
    padding: 0.55rem 0.75rem;
  }
}
