/* The legal pages and Vanlige spørsmål (plan 04.1-09, UI-SPEC 6.6 and 6.8). One readable column,
   max 720px, on the shell's cards. Loaded after app.css and customer.css; it uses their tokens and
   forks none. Plain media queries, same-origin only. */

.page > .breadcrumb,
.page > .card.prose {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.page > .breadcrumb {
  width: 100%;
}

.page > .card.prose {
  width: 100%;
  margin-bottom: var(--space-md);
  padding: var(--space-xl);
}

.prose {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
}

.prose h1 {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}

.prose h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-size: var(--text-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
}

.prose > .meta {
  margin: 0 0 var(--space-md);
}

.prose p,
.prose ul {
  margin: 0 0 var(--space-md);
}

.prose ul {
  padding-left: var(--space-lg);
}

.prose li + li {
  margin-top: var(--space-xs);
}

.prose a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .banner {
  margin-bottom: var(--space-lg);
}

/* A gap Even still has to fill: easy to find, never hidden */
.legal-gap {
  padding: 0 4px;
  background: var(--tone-warning-bg);
  border-radius: var(--radius-small);
  box-shadow: inset 0 0 0 1px var(--tone-warning-border);
}

/* Tables scroll inside their own region under 720px; the region is focusable for keyboard users */
.prose .table-scroll {
  margin: 0 0 var(--space-md);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-control);
}

.prose .table-scroll:focus-visible {
  outline: 2px solid var(--palette-dark);
  outline-offset: 2px;
}

.prose .table th,
.prose .table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.prose .table td {
  border-top: 1px solid var(--color-border);
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 719px) {
  .page > .card.prose {
    padding: var(--space-lg) var(--space-md);
  }

  .prose h1 {
    font-size: var(--text-title);
  }

  .prose .table {
    min-width: 520px;
  }
}

/* ------------------------------------------------------------------ Vanlige spørsmål */

.faq h2 {
  margin-top: var(--space-lg);
}

.faq__item {
  border-top: 1px solid var(--color-border);
}

.faq section:last-child .faq__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 44px;
  padding: 10px 0;
  font-weight: var(--weight-semibold);
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question .icon {
  flex: none;
  color: var(--color-text-muted);
  transition: transform var(--motion-fast) var(--ease);
}

.faq__item[open] > .faq__question .icon {
  transform: rotate(180deg);
}

.faq__question:focus-visible {
  outline: 2px solid var(--palette-dark);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}

.faq__answer {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
}

/* An item reached from a help link is easy to find */
.faq__item:target {
  scroll-margin-top: calc(var(--shell-topbar-height) + var(--space-md));
}

.faq__contact h2 {
  margin-top: 0;
}
