/* ==========================================================================
   Privacy Policy — Page-Specific Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.privacy-hero {
  padding-bottom: 0;
  overflow: hidden;
}
.privacy-hero .hero-inner {
  align-items: flex-end;
  gap: 32px;
}
.privacy-hero .hero-content {
  flex: 0 1 567px;
}
.privacy-hero .hero-headline h1 {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-ls);
}
.privacy-hero-tag {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-lh);
  letter-spacing: -0.48px;
  color: var(--secondary);
  margin-bottom: 16px;
}
.privacy-hero-subtitle {
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-lh);
  letter-spacing: var(--body-lg-ls);
  color: var(--secondary);
  margin-top: 24px;
}

/* — Hero visual (blob + logo) — */
.privacy-hero-visual {
  flex: 1;
  position: relative;
  height: 452px;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.privacy-hero-visual.visible {
  opacity: 1;
}
.privacy-hero-blob {
  width: 491px;
  height: 491px;
  aspect-ratio: 1;
}
.privacy-hero-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 50%;
  max-height: 50%;
  width: auto;
  height: auto;
  z-index: 1;
  margin-top: 15px;
}

/* --------------------------------------------------------------------------
   Policy Content — White Section
   -------------------------------------------------------------------------- */
.policy-content {
  background: var(--surface);
  padding: 80px 0;
  flex: 1;
}
.policy-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* — Main content stack — */
.policy-stack {
  flex: 1;
  min-width: 0;
  padding-right: 32px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* — Section divider lines — */
.policy-section:not(:last-child) {
  padding-bottom: 80px;
  border-bottom: 1px solid var(--stroke, #aad4cd);
}

/* — Sidebar — */
.policy-sidebar {
  width: 268px;
  flex-shrink: 0;
  position: sticky;
  top: 180px;
}
.policy-sidebar-inner {
  background: white;
  border: 1px solid var(--stroke, #aad4cd);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.policy-sidebar-label {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--primary);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--stroke, #aad4cd);
}
.policy-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-sidebar-link {
  display: flex;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.policy-sidebar-link:hover {
  opacity: 0.7;
}
.policy-sidebar-num {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.32px;
  color: var(--secondary);
  width: 23px;
  flex-shrink: 0;
}
.policy-sidebar-text {
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.14px;
  color: var(--primary);
  text-decoration: underline;
}
.policy-sidebar-link.active .policy-sidebar-num {
  color: var(--primary);
}
.policy-sidebar-link.active .policy-sidebar-text {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Section Layout — Horizontal (number beside content)
   -------------------------------------------------------------------------- */
.policy-section {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* — Section number (Heading 3) — */
.policy-section-number {
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
  color: var(--secondary);
  width: 65px;
  flex-shrink: 0;
}

/* — Section body (title + content) — */
.policy-section-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* — Section title (Heading 3) — */
.policy-section-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
  color: var(--primary);
}

/* — Lead paragraph (Body/Large) — */
.policy-lead {
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-lh);
  letter-spacing: var(--body-lg-ls);
  color: var(--secondary);
}

/* — Body paragraph (Body/Regular) — */
.policy-body {
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  letter-spacing: var(--body-ls);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Bullet List — Custom marker
   -------------------------------------------------------------------------- */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.policy-list li {
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  letter-spacing: var(--body-ls);
  color: var(--primary);
  padding-left: 34px;
  position: relative;
  background-image: url('../images/bullet-marker.svg');
  background-repeat: no-repeat;
  background-position: 0 6px;
  background-size: 18px 18px;
}

/* --------------------------------------------------------------------------
   Callout Box
   -------------------------------------------------------------------------- */
.policy-callout {
  background: #e4f1ef;
  border-radius: var(--radius-l);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-callout p {
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  letter-spacing: var(--body-ls);
  color: var(--primary);
}
.policy-callout strong {
  font-weight: 700;
}
.policy-callout-email {
  display: flex;
  align-items: center;
  gap: 8px;
}
.policy-email-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.policy-accordions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Accordion styles handled by shared accordion.css */
.policy-accordion-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Override shared accordion p margin — use flex gap instead */
.policy-accordion-body p {
  margin: 0;
}
/* Tighter 8px gap between intro text and its immediately following list */
.policy-accordion-body .policy-body + .policy-list {
  margin-top: -8px;
}

/* --------------------------------------------------------------------------
   Mobile — Jump to Section Select (hidden by default, shown at <=1279px)
   -------------------------------------------------------------------------- */
.policy-mobile-jump {
  display: none;
}
.policy-mobile-jump select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--primary);
  background: white;
  border: 1px solid var(--stroke, #aad4cd);
  border-radius: 12px;
  padding: 16px;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23023432' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 8px;
}
.policy-mobile-jump select:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (<=1279px)
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  /* Hero — row layout, scaled down to match Figma tablet */
  .privacy-hero {
    overflow: visible;
    padding-top: 120px;
  }
  .privacy-hero .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    padding: 0 48px;
    position: relative;
  }
  .privacy-hero .hero-content {
    flex: none;
    width: 60%;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
    padding: 80px 0;
    position: relative;
    z-index: 2;
  }
  .privacy-hero .hero-headline h1 {
    text-align: left;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.6px;
  }
  .privacy-hero-tag {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.4px;
  }
  .privacy-hero-subtitle {
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.5px;
    margin-top: 0;
  }
  .privacy-hero-visual,
  .privacy-hero-visual.visible {
    position: absolute;
    right: -24px;
    bottom: 0;
    width: 366px;
    height: 317px;
    opacity: 0.3;
    flex: none;
    overflow: hidden;
    z-index: 1;
    transition: none;
    padding-top: 0;
    align-items: flex-start;
    justify-content: center;
  }
  .privacy-hero-blob {
    width: 100%;
    height: auto;
    min-width: unset;
    flex-shrink: 0;
  }
  .privacy-hero-icon {
    margin-top: 0;
    /* Center relative to blob (366px) aligned to top of container */
    top: calc(366px / 2);
    transform: translate(-50%, -50%);
  }

  /* Content — hide sidebar, show mobile jump-to */
  .policy-content {
    padding: 32px 0;
  }
  .policy-inner {
    padding: 0 48px;
    flex-direction: column;
    gap: 32px;
  }
  .policy-stack {
    width: 100%;
    padding-right: 0;
    gap: 48px;
  }
  .policy-section:not(:last-child) {
    padding-bottom: 48px;
  }
  .policy-sidebar {
    display: none;
  }
  .policy-mobile-jump {
    display: block;
    width: 50%;
  }

  /* Sections — desktop layout, tablet typography */
  .policy-section-number {
    width: 40px;
    flex-shrink: 0;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.48px;
  }
  .policy-section-title {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.48px;
  }
  .policy-lead {
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.5px;
  }
  .policy-body, .policy-body p, .policy-body li {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
  }
  .policy-accordion-label {
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.5px;
  }
  .policy-accordions {
    gap: 16px;
  }
  .policy-accordions .accordion-item + .accordion-item {
    margin-top: 0;
  }
  .policy-accordions .accordion-question {
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.5px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (<=959px)
   -------------------------------------------------------------------------- */
@media (max-width: 690px) {
  .privacy-hero {
    padding-top: 90px;
    padding-bottom: 32px;
    position: relative;
    overflow: hidden;
  }
  .privacy-hero .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    position: relative;
    padding: 0 24px;
  }
  .privacy-hero .hero-content {
    flex: 1;
    max-width: 100%;
    padding: 32px 0;
    position: relative;
    z-index: 1;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
  }
  .privacy-hero .hero-headline h1 {
    text-align: left;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -2px;
  }
  .privacy-hero-tag {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -2px;
  }
  .privacy-hero-subtitle {
    font-size: var(--body-lg-size);
    line-height: var(--body-lg-lh);
    letter-spacing: var(--body-lg-ls);
  }
  .privacy-hero-visual,
  .privacy-hero-visual.visible {
    position: absolute;
    right: -60px;
    bottom: -60px;
    top: auto;
    transform: none;
    width: 236px;
    height: 236px;
    padding-top: 0;
    z-index: 0;
    opacity: 0.3;
    transition: none;
    animation: none;
    overflow: hidden;
    align-items: flex-start;
    justify-content: center;
  }
  .privacy-hero-blob {
    width: 100%;
    height: auto;
    min-width: unset;
  }
  .privacy-hero-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    opacity: 0.15;
  }
  .policy-content {
    padding: 32px 0;
  }
  .policy-inner {
    padding: 0 24px;
  }
  .policy-mobile-jump {
    width: 100%;
  }

  /* Mobile sections — stack number above content */
  .policy-section {
    flex-direction: column;
    gap: 8px;
  }
  .policy-section-number {
    width: auto;
  }

  /* Mobile typography — uses CSS variable mobile overrides from styles.css */
  .policy-section-number {
    font-size: var(--h3-size);
    line-height: var(--h3-lh);
    letter-spacing: var(--h3-ls);
  }
  .policy-section-title {
    font-size: var(--h3-size);
    line-height: var(--h3-lh);
    letter-spacing: var(--h3-ls);
  }
  .policy-lead {
    font-size: var(--body-lg-size);
    line-height: var(--body-lg-lh);
    letter-spacing: var(--body-lg-ls);
  }
  .policy-body {
    font-size: var(--body-size);
    line-height: var(--body-lh);
  }
  .policy-list li {
    font-size: var(--body-size);
    line-height: var(--body-lh);
    padding-left: 26px;
    background-position: 0 3px;
    background-size: 18px 18px;
  }
  /* Accordion responsive — only add bottom padding when open */
  .policy-accordion-body {
    padding: 0 24px;
  }
  .accordion-item--open .policy-accordion-body {
    padding: 0 24px 24px;
  }
  .policy-callout {
    padding: 16px;
  }
  .policy-callout p {
    font-size: var(--body-size);
    line-height: var(--body-lh);
  }
}

