/*
 * Privacy Policy styles.
 *
 * Used in two places:
 *   - privacy-policy.html (the full page; it links this file directly)
 *   - the Privacy Policy modal (assets/js/privacy-modal.js adds this file on first open, so
 *     visitors who never open the policy never download it)
 *
 * Built from the theme's own tokens (--primary, --secondary, --theme, --border) and fonts so it
 * matches the rest of the site. Nothing here targets the theme's own classes.
 */

/* ------------------------------------------------------------------ */
/* Policy text (same markup inside the page and inside the modal)       */
/* ------------------------------------------------------------------ */
.gl-policy {
  color: var(--primary);
  font-size: 17px;
  line-height: 1.7;
}
.gl-policy > :first-child {
  margin-top: 0;
}
.gl-policy p {
  margin: 0 0 16px;
  /* The theme sets its own size on every <p>; keep the policy's own */
  font-size: inherit;
  line-height: inherit;
  color: #333333;
}
.gl-policy .gl-policy__date {
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--primary);
}
.gl-policy h2 {
  margin: 40px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font_sequelsansromanbody);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.gl-policy h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}
.gl-policy ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.gl-policy li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 24px;
  color: #333333;
}
.gl-policy li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--theme);
}
.gl-policy strong {
  font-weight: 600;
  color: var(--primary);
}
.gl-policy a {
  color: var(--theme);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.gl-policy a:hover,
.gl-policy a:focus-visible {
  color: var(--primary);
}
.gl-policy .gl-policy__contact {
  padding-left: 18px;
  border-left: 3px solid var(--theme);
  color: var(--primary);
}
@media only screen and (max-width: 767px) {
  .gl-policy {
    font-size: 16px;
  }
  .gl-policy h2 {
    margin-top: 32px;
    padding-top: 22px;
    font-size: 22px;
  }
  .gl-policy h3 {
    font-size: 17px;
  }
}

/* ------------------------------------------------------------------ */
/* privacy-policy.html page layout                                      */
/* ------------------------------------------------------------------ */
/* "PRIVACY POLICY" is far longer than the theme's one-word page titles (FAQ, CONTACT), so scale
   the giant title to the viewport instead of the theme's fixed sizes. */
.page-title-wrapper .page-title.gl-policy-title {
  font-size: 16vw;
}
.gl-policy-page__inner {
  max-width: 920px;
  margin-left: auto;
  padding: 24px 0 90px;
}
@media only screen and (max-width: 991px) {
  .gl-policy-page__inner {
    max-width: none;
    margin-left: 0;
    padding-bottom: 60px;
  }
}

/* ------------------------------------------------------------------ */
/* Modal                                                                */
/* ------------------------------------------------------------------ */
/* Lock page scroll while the modal is open without the layout jumping when the scrollbar goes away */
html.gl-privacy-open {
  overflow: hidden !important;
  scrollbar-gutter: stable;
}
.gl-privacy {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.gl-privacy.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}
.gl-privacy__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.gl-privacy__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: min(90vh, 960px);
  max-height: min(90dvh, 960px);
  overflow: hidden;
  border-radius: 20px;
  background-color: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gl-privacy.is-open .gl-privacy__dialog {
  transform: none;
}
.gl-privacy__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px;
  /* The same warm cream as the homepage hero */
  background-color: rgba(255, 129, 58, 0.15);
  border-bottom: 1px solid var(--border);
}
.gl-privacy__title {
  margin: 0;
  font-family: var(--font_sequelsansromanbody);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.gl-privacy__x {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 50%;
  background-color: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.gl-privacy__x:hover,
.gl-privacy__x:focus-visible {
  border-color: var(--theme);
  background-color: var(--theme);
  color: #FFFFFF;
}
.gl-privacy__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 28px 32px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.gl-privacy__body:focus {
  outline: none;
}
.gl-privacy__body:focus-visible {
  outline: 2px solid var(--theme);
  outline-offset: -2px;
}
.gl-privacy__foot {
  flex: none;
  display: flex;
  justify-content: flex-end;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  background-color: #FFFFFF;
}
.gl-privacy__foot .rr-btn {
  padding: 18px 34px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}
@media only screen and (max-width: 575px) {
  .gl-privacy {
    padding: 12px;
  }
  .gl-privacy__dialog {
    border-radius: 16px;
  }
  .gl-privacy__head,
  .gl-privacy__foot {
    padding-left: 20px;
    padding-right: 20px;
  }
  .gl-privacy__head {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .gl-privacy__title {
    font-size: 24px;
  }
  .gl-privacy__body {
    padding: 20px 20px 4px;
  }
  .gl-privacy__foot .rr-btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gl-privacy,
  .gl-privacy.is-open,
  .gl-privacy__dialog {
    transition: none;
  }
}
