/* ==========================================================
   POMAR — Help Center / Terms & cancellation
   Scoped by body.pomar-help-terms-page and .pomar-help-terms.
   ========================================================== */

body.pomar-help-terms-page,
body.pomar-help-terms-page .site-content {
  background: var(--surface-page);
}

body.pomar-help-terms-page .site-content .ast-container,
body.pomar-help-terms-page #primary,
body.pomar-help-terms-page .site-main,
body.pomar-help-terms-page .ast-article-single,
body.pomar-help-terms-page article.page,
body.pomar-help-terms-page .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}

body.pomar-help-terms-page .site-content .ast-container {
  display: block;
}

body.pomar-help-terms-page #secondary,
body.pomar-help-terms-page .entry-header,
body.pomar-help-terms-page .entry-title {
  display: none;
}

.pomar-help-terms,
.pomar-help-terms * {
  box-sizing: border-box;
}

.pomar-help-terms {
  width: 100%;
  margin: 0;
  color: var(--text-body);
  background: var(--surface-page);
}

.pomar-help-terms__container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.pomar-help-terms a {
  color: inherit;
  text-underline-offset: 3px;
}

.pomar-help-terms a:focus-visible,
.pomar-help-terms button:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 3px;
}

/* Hero ---------------------------------------------------- */

.pomar-help-terms__hero {
  padding-block: var(--space-7) var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-page-alt);
}

.pomar-help-terms__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-6);
  color: var(--text-muted);
  font: var(--type-small);
  font-size: var(--text-xs);
}

.pomar-help-terms__breadcrumb a {
  text-decoration: none;
}

.pomar-help-terms__breadcrumb a:hover {
  color: var(--clay-700);
  text-decoration: underline;
}

.pomar-help-terms__eyebrow,
.pomar-help-terms__toc-title,
.pomar-help-terms__section-number,
.pomar-help-terms__key-rule-label {
  margin: 0;
  color: var(--text-muted);
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.pomar-help-terms__hero .pomar-help-terms__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--clay-700);
}

.pomar-help-terms__hero h1 {
  max-width: 900px;
  margin: 0 0 var(--space-4);
  color: var(--text-heading);
  font-family: "Basteleur", Georgia, serif;
  font-size: clamp(48px, 6vw, 76px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.pomar-help-terms__hero-copy {
  max-width: 720px;
  margin: 0 0 var(--space-4);
  color: var(--text-body);
  font: var(--type-body-lg);
  line-height: 1.55;
}

.pomar-help-terms__updated {
  margin: 0;
  color: var(--text-muted);
  font: var(--type-small);
  font-size: var(--text-xs);
}

/* Layout and table of contents ---------------------------- */

.pomar-help-terms__layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 720px);
  gap: var(--space-8);
  align-items: start;
  justify-content: start;
  padding-block: var(--space-8) var(--space-9);
}

.pomar-help-terms__sidebar {
  position: sticky;
  top: 108px;
}

.pomar-help-terms__toc-title {
  margin-bottom: var(--space-3);
}

.pomar-help-terms__toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pomar-help-terms__toc a {
  display: block;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font: var(--type-small);
  font-size: var(--text-sm);
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pomar-help-terms__toc a:hover {
  border-color: var(--border-subtle);
  background: var(--surface-page-alt);
  color: var(--text-heading);
}

.pomar-help-terms__toc a.is-active,
.pomar-help-terms__toc a[aria-current="location"] {
  border-color: var(--sun-400);
  background: var(--sun-400);
  color: var(--text-on-accent);
}

.pomar-help-terms__contact-card,
.pomar-help-terms__mobile-contact {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--text-on-accent);
}

.pomar-help-terms__contact-card {
  margin-top: var(--space-5);
}

.pomar-help-terms__contact-card h2,
.pomar-help-terms__mobile-contact h2 {
  margin: 0 0 var(--space-2);
  color: var(--clay-900);
  font-family: "Mediaan", Georgia, serif;
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
}

.pomar-help-terms__contact-card p,
.pomar-help-terms__mobile-contact p {
  margin: 0 0 var(--space-4);
  color: var(--clay-800);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.pomar-help-terms__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: "Mediaan", Georgia, serif;
  font-size: var(--text-sm);
  font-style: italic;
  line-height: 1;
  text-decoration: none;
}

.pomar-help-terms__button--dark {
  border-color: var(--clay-900);
  background: var(--clay-900);
  color: var(--text-on-dark) !important;
}

.pomar-help-terms__button--dark:hover {
  border-color: var(--clay-700);
  background: var(--clay-700);
}

.pomar-help-terms__mobile-contact {
  display: none;
}

/* Article ------------------------------------------------- */

.pomar-help-terms__article {
  min-width: 0;
}

.pomar-help-terms__key-rule {
  margin-bottom: var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--sun-500);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.pomar-help-terms__key-rule-label {
  margin-bottom: var(--space-2);
  color: var(--sun-700);
}

.pomar-help-terms__key-rule p:last-child {
  margin: 0;
  color: var(--text-on-accent);
  font-size: var(--text-md);
  line-height: 1.65;
}

.pomar-help-terms__section {
  scroll-margin-top: 128px;
}

.pomar-help-terms__section + .pomar-help-terms__section {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.pomar-help-terms__section-number {
  margin-bottom: var(--space-2);
  color: var(--clay-600);
}

.pomar-help-terms__section h2 {
  margin: 0 0 var(--space-4);
  color: var(--text-heading);
  font-family: "Mediaan", Georgia, serif;
  font-size: clamp(30px, 3vw, 40px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
}

.pomar-help-terms__section > p {
  margin: 0 0 var(--space-4);
  color: var(--text-body);
  font-size: var(--text-md);
  line-height: 1.75;
}

.pomar-help-terms__section > p:last-child {
  margin-bottom: 0;
}

.pomar-help-terms__payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.pomar-help-terms__payment-grid > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-4);
  align-items: start;
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
}

.pomar-help-terms__payment-grid span {
  color: var(--text-muted);
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.pomar-help-terms__payment-grid strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--clay-600);
  font-family: "Basteleur", Georgia, serif;
  font-size: var(--text-2xl);
  line-height: 1;
}

.pomar-help-terms__payment-grid p {
  margin: 0;
  color: var(--text-body);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.pomar-help-terms__rules {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.pomar-help-terms__rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
}

.pomar-help-terms__rule h3 {
  margin: 0 0 var(--space-2);
  color: var(--text-heading);
  font-family: "Mediaan", Georgia, serif;
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

.pomar-help-terms__rule p {
  margin: 0;
  color: var(--text-body);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.pomar-help-terms__rule-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--clay-800);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.pomar-help-terms__rule-status--positive {
  background: var(--success-100);
  color: var(--success-600);
}

.pomar-help-terms__check-list {
  display: grid;
  gap: 0;
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.pomar-help-terms__check-list li {
  position: relative;
  margin: 0;
  padding: var(--space-4) 0 var(--space-4) 34px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  line-height: 1.65;
}

.pomar-help-terms__check-list li::before {
  position: absolute;
  top: 20px;
  left: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--clay-500);
  border-radius: 50%;
  color: var(--clay-700);
  content: "✓";
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.pomar-help-terms__check-list strong {
  color: var(--text-heading);
}

/* Next steps ---------------------------------------------- */

.pomar-help-terms__next {
  padding-block: var(--space-8) var(--space-9);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-page-alt);
}

.pomar-help-terms__next .pomar-help-terms__eyebrow {
  margin-bottom: var(--space-3);
}

.pomar-help-terms__next h2 {
  margin: 0 0 var(--space-6);
  color: var(--text-heading);
  font-family: "Mediaan", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
}

.pomar-help-terms__next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.pomar-help-terms__next-grid > a {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.pomar-help-terms__next-grid > a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pomar-help-terms__next-grid > a > span {
  color: var(--text-heading);
  font-family: "Mediaan", Georgia, serif;
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.2;
}

.pomar-help-terms__next-grid p {
  margin: var(--space-3) 0 var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.pomar-help-terms__next-grid strong {
  margin-top: auto;
  color: var(--clay-700);
  font-size: var(--text-sm);
  font-weight: 400;
}

/* Responsive ---------------------------------------------- */

@media (max-width: 980px) {
  .pomar-help-terms__layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: var(--space-6);
  }

  .pomar-help-terms__next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pomar-help-terms__container {
    padding-inline: var(--space-4);
  }

  .pomar-help-terms__hero {
    padding-block: var(--space-5) var(--space-6);
  }

  .pomar-help-terms__breadcrumb {
    margin-bottom: var(--space-5);
    font-size: var(--text-2xs);
  }

  .pomar-help-terms__hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .pomar-help-terms__hero-copy {
    font-size: var(--text-md);
  }

  .pomar-help-terms__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    padding-bottom: var(--space-7);
  }

  .pomar-help-terms__sidebar {
    position: sticky;
    z-index: 25;
    top: 0;
    width: calc(100% + (2 * var(--space-4)));
    margin: 0 calc(-1 * var(--space-4)) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(250, 245, 237, .94);
    backdrop-filter: blur(14px);
  }

  .pomar-help-terms__toc-title,
  .pomar-help-terms__contact-card {
    display: none;
  }

  .pomar-help-terms__toc {
    display: flex;
    overflow-x: auto;
    flex-direction: row;
    gap: var(--space-2);
    padding: 11px var(--space-4);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .pomar-help-terms__toc::-webkit-scrollbar {
    display: none;
  }

  .pomar-help-terms__toc a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-color: var(--border-subtle);
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }

  .pomar-help-terms__key-rule {
    margin-bottom: var(--space-6);
  }

  .pomar-help-terms__section {
    scroll-margin-top: 84px;
  }

  .pomar-help-terms__section + .pomar-help-terms__section {
    margin-top: var(--space-7);
    padding-top: var(--space-7);
  }

  .pomar-help-terms__section h2 {
    font-size: 30px;
  }

  .pomar-help-terms__section > p,
  .pomar-help-terms__key-rule p:last-child {
    font-size: var(--text-sm);
  }

  .pomar-help-terms__payment-grid {
    grid-template-columns: 1fr;
  }

  .pomar-help-terms__rule {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .pomar-help-terms__rule-status {
    justify-self: start;
  }

  .pomar-help-terms__mobile-contact {
    display: block;
    margin-top: var(--space-7);
  }

  .pomar-help-terms__mobile-contact .pomar-help-terms__button {
    width: 100%;
  }

  .pomar-help-terms__next {
    padding-block: var(--space-7);
  }

  .pomar-help-terms__next-grid {
    grid-template-columns: 1fr;
  }

  .pomar-help-terms__next-grid > a {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pomar-help-terms *,
  .pomar-help-terms *::before,
  .pomar-help-terms *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
