/* ==========================================================================
   BLIPPI — LEGAL / POLICY PAGES
   ========================================================================== */

.legal-page {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ----- PAGE BANNER (inner pages) ----- */
.page-banner {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-height) + clamp(36px, 5vw, 52px));
  padding-bottom: clamp(40px, 5vw, 56px);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-dark-mesh);
  opacity: 0.55;
  pointer-events: none;
}

.page-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.page-banner > .bp-container {
  position: relative;
  z-index: 1;
}

.page-banner__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(16px, 2.5vw, 22px);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.55);
}

.page-banner__breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.page-banner__breadcrumb a:hover {
  color: #fff;
}

.page-banner__sep {
  opacity: 0.45;
}

.page-banner__breadcrumb [aria-current="page"] {
  color: #fff;
}

.page-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #fff;
  max-width: 18ch;
}

.page-banner__meta {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.62);
}

.legal-main {
  padding-top: 0;
  padding-bottom: clamp(48px, 6vw, 80px);
  min-height: 60vh;
}

.legal {
  position: relative;
  padding-top: clamp(40px, 5vw, 56px);
}

.legal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

@media (min-width: 992px) {
  .legal__layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: clamp(40px, 5vw, 64px);
  }
}

.legal__main {
  min-width: 0;
}

.legal__body {
  max-width: none;
}

.legal__sidebar {
  display: none;
}

@media (min-width: 992px) {
  .legal__sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}

.legal-toc {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.legal-toc__label {
  margin: 0 0 16px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.legal-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-toc__list li + li {
  border-top: 1px solid var(--color-border);
}

.legal-toc__link {
  display: block;
  padding: 12px 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}

.legal-toc__link:hover {
  color: var(--color-text-muted);
  padding-left: 4px;
}

.legal-toc__link.is-active {
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.legal__section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--color-text);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.legal__intro {
  margin: 0 0 28px;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--color-text-muted);
}

.legal__section {
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.legal__section p,
.legal__section li {
  margin: 0 0 12px;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--color-text-muted);
}

.legal__section p:last-child,
.legal__section ul:last-child {
  margin-bottom: 0;
}

.legal__section ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.legal__section li {
  margin-bottom: 8px;
}

.legal__section strong {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
}

.legal__contact {
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.legal__contact p {
  margin: 0 0 8px;
}

.legal__contact p:last-child {
  margin-bottom: 0;
}

.legal__contact a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- CONTACT PAGE (no sidebar) ----- */
.contact-page .legal__layout {
  grid-template-columns: minmax(0, 1fr);
}

.contact-page .legal__body {
  max-width: 900px;
  margin: 0 auto;
}

.contact-page .page-banner__title {
  max-width: none;
}

.contact-page .page-banner__meta {
  max-width: 52ch;
  font-size: var(--fs-base);
  line-height: 1.65;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 20px);
  margin-bottom: clamp(36px, 4vw, 48px);
}

@media (min-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-card {
  margin-bottom: 0;
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-card .legal__section-title {
  margin-bottom: 14px;
  font-size: var(--fs-lg);
}

.contact-card p {
  margin: 0 0 10px;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.contact-card p:last-of-type {
  margin-bottom: 0;
}

.contact-card a:not(.btn-bp) {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card__action {
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-start;
}

.contact-card__phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.contact-card__phone:hover {
  opacity: 0.75;
}

.contact-form-section {
  padding: clamp(28px, 4vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-form-section .legal__section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 10px;
}

.contact-form-section .legal__intro {
  margin-bottom: clamp(24px, 3vw, 32px);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.contact-field__req {
  color: var(--color-danger);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--color-text-subtle);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-address-block {
  margin-top: clamp(28px, 4vw, 40px);
}

.contact-address-block p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--color-text-muted);
}
