/* Nursery Bazar BD — Privacy Policy */

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #66bb6a;
  --primary-pale: #e8f5e9;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(27, 94, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 94, 32, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --header-h: 72px;
  --toc-width: 260px;
  --layout-gap: 2.5rem;
  --content-max: 720px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--primary-pale);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-nav {
  display: none;
  gap: 1.25rem;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
}

.header-nav a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(165deg, var(--primary-pale) 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 320px;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(46, 125, 50, 0.12);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-dark);
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-pill {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.meta-pill strong {
  color: var(--text);
}

.hero-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.summary-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.summary-list li + li {
  margin-top: 0.5rem;
}

/* Layout */
.layout {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: var(--toc-width) minmax(0, 1fr);
    gap: var(--layout-gap);
    align-items: start;
  }

  .toc-panel {
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    max-height: calc(100vh - var(--header-h) - 2.5rem);
  }

  .toc-sticky {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    padding: 1.25rem 1rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .toc {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 125, 50, 0.35) transparent;
  }

  .toc::-webkit-scrollbar {
    width: 5px;
  }

  .toc::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.35);
    border-radius: 999px;
  }
}

.toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .toc-title {
    flex-shrink: 0;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.toc a {
  display: block;
  padding: 0.5rem 0.65rem 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  margin-left: -2px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.toc a:hover {
  color: var(--primary);
  background: rgba(232, 245, 233, 0.6);
}

.toc a.is-active {
  color: var(--primary-dark);
  font-weight: 600;
  border-left-color: var(--primary);
  background: var(--primary-pale);
}

@media (min-width: 1024px) {
  .btn-print {
    flex-shrink: 0;
    margin-top: 1rem;
  }
}

.btn-print {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-pale);
  border: 1px solid rgba(46, 125, 50, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease;
}

.btn-print:hover {
  background: #dcedc8;
}

.btn-print:active {
  transform: scale(0.98);
}

/* Policy content */
.policy-content {
  max-width: var(--content-max);
}

@media (min-width: 1024px) {
  .policy-content {
    grid-column: 2;
    min-width: 0;
    width: 100%;
    max-width: var(--content-max);
  }
}

.policy-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

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

.policy-section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.policy-section h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.policy-section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.policy-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.policy-section li + li {
  margin-top: 0.35rem;
}

.info-cards {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 600px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.highlight-box {
  padding: 1rem 1.25rem;
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--primary-dark) !important;
}

.contact-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
}

.back-top {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow var(--transition);
}

.back-top:hover {
  box-shadow: var(--shadow-lg);
}

.back-top.is-visible {
  opacity: 1;
}

/* Mobile TOC — collapsible */
.toc-panel {
  order: -1;
}

@media (max-width: 1023px) {
  .toc-panel {
    position: static;
    max-height: none;
  }

  .toc-panel .toc-sticky {
    overflow: hidden;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .toc-title {
    margin: 0;
    padding: 0.9rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    user-select: none;
    transition: background var(--transition);
  }

  .toc-title:hover {
    background: var(--primary-pale);
  }

  .toc-title::after {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    margin-top: -0.2rem;
    transition: transform 0.25s ease;
  }

  .toc-panel.is-open .toc-title::after {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
  }

  .toc-panel .toc,
  .toc-panel .btn-print {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      padding 0.35s ease;
  }

  .toc-panel .toc {
    padding: 0 1rem;
  }

  .toc-panel .btn-print {
    margin: 0;
    padding: 0 1rem;
    border: none;
    background: transparent;
  }

  .toc-panel.is-open .toc,
  .toc-panel.is-open .btn-print {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
  }

  .toc-panel.is-open .toc {
    padding: 0.25rem 1rem 0.75rem;
  }

  .toc-panel.is-open .btn-print {
    margin: 0 1rem 1rem;
    padding: 0.65rem 1rem;
    max-height: 3.5rem;
    background: var(--primary-pale);
    border: 1px solid rgba(46, 125, 50, 0.25);
  }

  .toc-panel.is-open .toc ol {
    max-height: 16rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Print */
@media print {
  .site-header,
  .toc-panel,
  .back-top,
  .btn-print,
  .skip-link {
    display: none !important;
  }

  .hero {
    padding: 1rem 0;
    background: none;
  }

  .policy-section {
    break-inside: avoid;
  }

  body {
    background: #fff;
  }
}
