/* =====================================================================
   Syrohchem — Privacy Policy page styles
   Builds on terms.css (accordion cards, index chips, CTA). Adds the
   glossary layout for Section 01, the icon-based rights grid for
   Section 06, and a sticky table-of-contents layout so the page reads
   like a reference document rather than a wall of text.
   ===================================================================== */

.sy-privacy {
  --sy-terms-accent: #1B6FC9;
  --sy-terms-accent-dark: #0F4C86;
  --sy-terms-ink: #1C2530;
  --sy-terms-line: rgba(27, 111, 201, 0.18);
}

/* Reinforce the plain-zero fix for every numbered badge on this page too */
.sy-privacy .sy-mono,
.sy-privacy .sy-term-card__num,
.sy-privacy .sy-terms-index__chip .sy-mono,
.sy-privacy .sy-privacy-nav__link .sy-mono {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  font-variant-numeric: normal;
  font-feature-settings: "zero" 0, "ss01" 0, "ss02" 0;
}

/* ---------- Breadcrumb ---------- */
.sy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.sy-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.sy-breadcrumb a:hover {
  text-decoration: underline;
}

.sy-breadcrumb i {
  font-size: 0.6rem;
  opacity: 0.7;
}

.sy-breadcrumb span[aria-current] {
  color: #fff;
  font-weight: 600;
}

/* ---------- Hero compliance badges ---------- */
.sy-privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1rem;
}

.sy-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.sy-privacy-badge i {
  color: #7CC4FF;
  font-size: 0.85rem;
}

/* ---------- Hero fixes ---------- */
/* The source photo has legible background text ("...security") that fights
   the headline, and the meta row (company / date / print) was overflowing
   past the hero edge on medium widths instead of wrapping. */
.sy-privacy .sy-hero--terms .sy-hero__overlay {
  background: linear-gradient(115deg, rgba(8, 16, 28, 0.94) 0%, rgba(8, 16, 28, 0.82) 45%, rgba(8, 16, 28, 0.6) 100%);
}

.sy-privacy .sy-hero--terms .sy-hero__media img {
  filter: blur(1.5px) saturate(0.85);
}

.sy-privacy .sy-terms__meta {
  flex-wrap: wrap;
  row-gap: 0.5rem;
  column-gap: 1.5rem;
}

/* ---------- Intro panel ---------- */
.sy-privacy-intro {
  padding-block: 3.5rem 1.5rem;
}

.sy-privacy-intro__panel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2.75rem 2.25rem;
  background: linear-gradient(150deg, rgba(27, 111, 201, 0.05), rgba(27, 111, 201, 0.015));
  border: 1px solid var(--sy-terms-line);
  border-left: 4px solid var(--sy-terms-accent);
  border-radius: 16px;
  box-shadow: 0 18px 40px -24px rgba(15, 76, 134, 0.35);
}

.sy-privacy-intro__icon {
  position: absolute;
  top: -1.1rem;
  left: 2.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sy-terms-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: 0 8px 18px -4px rgba(27, 111, 201, 0.55);
}

.sy-privacy-intro__text {
  margin: 0.5rem 0 0;
  color: #3B4653;
  line-height: 1.8;
}

@media (max-width: 576px) {
  .sy-privacy-intro__panel {
    padding: 2.25rem 1.5rem 1.75rem;
  }
}

/* ---------- Print control (lives in the hero meta row) ---------- */
/* Reset first: this sits next to plain <span> meta items, so it must not
   pick up the browser's default grey <button> chrome. */
.sy-privacy-print {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.92rem;
}

.sy-privacy-print:hover,
.sy-privacy-print:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.sy-privacy-print:focus-visible {
  outline: 2px solid #7CC4FF;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- At a Glance ---------- */
.sy-privacy-glance {
  padding-block: 1.5rem 3rem;
}

.sy-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.sy-glance-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--sy-terms-line);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sy-glance-card:hover {
  border-color: var(--sy-terms-accent);
  transform: translateY(-2px);
}

.sy-glance-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 111, 201, 0.08);
  color: var(--sy-terms-accent-dark);
  border-radius: 9px;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.sy-glance-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sy-terms-ink);
  margin-bottom: 0.45rem;
}

.sy-glance-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #55606B;
  margin: 0;
}

.sy-glance-card p a {
  color: var(--sy-terms-accent-dark);
}

@media (max-width: 992px) {
  .sy-glance-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .sy-glance-grid { grid-template-columns: 1fr; }
}

/* ---------- Sticky TOC layout ---------- */
.sy-privacy-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.sy-privacy-nav {
  position: sticky;
  top: 8.5rem;
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-right: 1px solid var(--sy-terms-line);
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
}

/* Anchor targets sit under a floating navbar — without this, jumping to a
   section (via the sidebar, mobile chips, or a direct #privacy-06 link)
   lands the heading exactly behind the navbar pill. */
.sy-privacy [id^="privacy-"] {
  scroll-margin-top: 7.5rem;
}

.sy-privacy-nav__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A93A0;
  margin-bottom: 0.85rem;
}

.sy-privacy-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sy-privacy-nav__link {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 7px;
  font-size: 0.87rem;
  color: #55606B;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.sy-privacy-nav__link .sy-mono {
  font-size: 0.72rem;
  color: #A6AEB8;
  min-width: 1.2rem;
}

.sy-privacy-nav__link:hover {
  background: rgba(27, 111, 201, 0.06);
  color: var(--sy-terms-ink);
}

.sy-privacy-nav__link.is-active {
  background: rgba(27, 111, 201, 0.08);
  color: var(--sy-terms-accent-dark);
  border-left-color: var(--sy-terms-accent);
  font-weight: 600;
}

.sy-privacy-nav__link.is-active .sy-mono {
  color: var(--sy-terms-accent);
}

.sy-privacy-content {
  min-width: 0;
}

.sy-privacy-nav--mobile {
  display: none;
}

@media (max-width: 992px) {
  .sy-privacy-layout {
    grid-template-columns: 1fr;
  }
  .sy-privacy-nav {
    display: none;
  }
  .sy-privacy-nav--mobile {
    display: block;
    margin-bottom: 1.5rem;
  }
}

/* ---------- Accordion cards ----------
   Fully self-contained: every clause on this page must render as a proper
   card even if terms.css's own accordion rules don't reach this deeply
   nested markup. Native <details>/<summary> chrome (the default disclosure
   triangle) is stripped and replaced with our own toggle icon. */
.sy-privacy .sy-terms__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sy-privacy .sy-term-card {
  background: #fff;
  border: 1px solid var(--sy-terms-line);
  border-radius: 12px;
  overflow: hidden;
}

.sy-privacy .sy-term-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--sy-terms-ink);
  list-style: none;
}

.sy-privacy .sy-term-card__head::-webkit-details-marker,
.sy-privacy .sy-term-card__head::marker {
  display: none;
  content: '';
}

.sy-privacy .sy-term-card__num {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--sy-terms-accent);
  min-width: 1.6rem;
}

.sy-privacy .sy-term-card__title {
  flex: 1;
  font-size: 1.02rem;
}

.sy-privacy .sy-term-card__toggle {
  flex-shrink: 0;
  color: var(--sy-terms-accent);
  transition: transform 0.2s ease;
}

.sy-privacy details.sy-term-card[open] > .sy-term-card__head .sy-term-card__toggle,
.sy-privacy details.sy-term-card[open] .sy-term-card__toggle {
  transform: rotate(180deg);
}

.sy-privacy .sy-term-card__body {
  padding: 0 1.4rem 1.4rem;
  color: #45505C;
  line-height: 1.75;
}

.sy-privacy .sy-term-card__body p {
  margin: 0 0 1rem;
}

.sy-privacy .sy-term-card__body p:last-child {
  margin-bottom: 0;
}

/* ---------- Definitions glossary (Section 01) ---------- */
.sy-glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sy-glossary__item {
  padding: 1rem 1.15rem;
  background: rgba(27, 111, 201, 0.04);
  border-left: 3px solid var(--sy-terms-accent);
  border-radius: 6px;
}

.sy-glossary__item dt {
  font-weight: 700;
  color: var(--sy-terms-ink);
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.sy-glossary__item dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #55606B;
}

/* ---------- Contact card (Section 02) ---------- */
.sy-contact-card {
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  background: rgba(27, 111, 201, 0.04);
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sy-contact-card p {
  margin: 0;
}

.sy-contact-card i {
  color: var(--sy-terms-accent);
  width: 1.1rem;
  text-align: center;
  margin-right: 0.4rem;
}

.sy-contact-card a {
  color: var(--sy-terms-ink);
  text-decoration: none;
}

.sy-contact-card a:hover {
  color: var(--sy-terms-accent);
}

/* ---------- Rights grid (Section 06) ---------- */
.sy-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sy-rights-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--sy-terms-line);
  border-radius: 10px;
}

.sy-rights-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sy-rights-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 111, 201, 0.08);
  color: var(--sy-terms-accent-dark);
  border-radius: 8px;
  font-size: 0.95rem;
}

.sy-rights-card__letter {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #A6AEB8;
  text-transform: lowercase;
}

.sy-rights-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sy-terms-ink);
  margin-bottom: 0.4rem;
}

.sy-rights-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #55606B;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  .sy-glossary,
  .sy-rights-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Print ---------- */
@media print {
  .sy-privacy nav,
  .sy-privacy .navbar,
  .sy-privacy-nav,
  .sy-privacy-nav--mobile,
  .sy-privacy-print,
  .sy-terms-cta,
  footer {
    display: none !important;
  }
  .sy-privacy-layout {
    display: block;
  }
  .sy-term-card__body {
    display: block !important;
  }
  .sy-privacy .sy-term-card {
    break-inside: avoid;
  }
}