/* Legal pages */
.p-page { padding: clamp(46px, 7vw, 86px) 0 clamp(60px, 8vw, 100px); }

.p-page-head { max-width: 820px; }
.p-page-head h1 {
  margin-top: 14px;
  font-family: var(--p-font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.p-page-head .p-lead { max-width: 70ch; }

.p-draft {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 209, 138, 0.38);
  border-radius: var(--p-radius-md);
  background: rgba(255, 209, 138, 0.09);
  color: #ffe3b8;
  font-size: 0.94rem;
  line-height: 1.55;
}

.p-draft strong { color: var(--p-warm); }

.p-prose { max-width: 840px; margin-top: 34px; }

.p-prose h2 {
  margin: 38px 0 12px;
  font-family: var(--p-font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.p-prose h2:first-child { margin-top: 0; }

.p-prose h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
}

.p-prose p,
.p-prose li { color: var(--p-muted); font-size: 0.96rem; line-height: 1.65; }

.p-prose p { margin: 10px 0; }

.p-prose ul,
.p-prose ol { margin: 12px 0; padding-left: 24px; }
.p-prose ul { list-style: disc; }
.p-prose ol { list-style: decimal; }
.p-prose li { margin: 6px 0; }

.p-prose a {
  color: var(--p-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(116, 227, 163, 0.35);
}

.p-prose strong { color: var(--p-text); }

.p-prose table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.p-prose th,
.p-prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--p-line);
  text-align: left;
  vertical-align: top;
}

.p-prose th { color: var(--p-text); font-weight: 650; }
.p-prose td { color: var(--p-muted); }

.p-table-wrap { overflow-x: auto; }

[data-fill] {
  padding: 0 0.3em;
  border-bottom: 1px dashed rgba(255, 209, 138, 0.6);
  border-radius: 4px;
  background: rgba(255, 209, 138, 0.12);
  color: #ffe3b8;
  font-size: 0.94em;
  white-space: nowrap;
}

.p-note-box {
  margin: 22px 0;
  padding: 16px 20px;
  border: 1px solid var(--p-line-strong);
  border-radius: var(--p-radius-md);
  background: rgba(18, 31, 25, 0.6);
  color: var(--p-muted);
  font-size: 0.92rem;
}

.p-note-box strong { color: var(--p-text); }

/* Footer */
.p-footer {
  border-top: 1px solid var(--p-line);
  padding: clamp(40px, 6vw, 58px) 0 28px;
  background: rgba(8, 14, 11, 0.35);
}

.p-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: 32px;
}

.p-footer-brand p {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--p-muted-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.p-footer-col .p-footer-heading {
  margin: 0;
  color: var(--p-muted-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.p-footer-col a {
  display: block;
  margin-top: 10px;
  color: var(--p-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color .2s ease;
}

.p-footer-col a:hover,
.p-footer-col a:focus-visible { color: var(--p-text); }

.p-footer-seller {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  background: rgba(18, 31, 25, 0.5);
  color: var(--p-muted-2);
  font-size: 0.86rem;
  line-height: 1.7;
}

.p-footer-seller strong { color: var(--p-muted); }
.p-footer-seller a { color: var(--p-muted); text-decoration: none; border-bottom: 1px dotted var(--p-line-strong); }
.p-footer-seller a:hover { color: var(--p-text); }

.p-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--p-line);
  color: var(--p-muted-2);
  font-size: 0.84rem;
}

.p-footer-bottom a { color: var(--p-muted); text-decoration: none; }
.p-footer-bottom a:hover { color: var(--p-text); }

/* Reveal: content is visible by default; animation is progressive enhancement */
.p-reveal { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .p-reveal {
      animation: p-reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes p-reveal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .p-nav { gap: 16px; }
  .p-nav a { font-size: 0.88rem; }
}

@media (max-width: 1040px) {
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-hero-copy { max-width: 680px; }
  .p-hero-art { max-width: 640px; }
  .p-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-steps { grid-template-columns: 1fr; }
  .p-panel-grid { grid-template-columns: 1fr; }
  .p-split { grid-template-columns: 1fr; }
  .p-split--reverse .p-art { order: 1; }
  .p-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--p-line);
    background: rgba(11, 18, 16, 0.98);
  }
  .p-nav.is-open { display: flex; }
  .p-nav a { width: 100%; padding: 11px 6px; font-size: 1rem; }
  .p-nav a.p-nav-login {
    display: block;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--p-line);
    color: var(--p-accent);
    font-weight: 700;
  }
  .p-menu-btn { display: inline-flex; }
  .p-header-inner { gap: 14px; }
}

@media (max-width: 760px) {
  .p-container { width: min(100% - 32px, var(--p-maxw)); }
  .p-header-inner { min-height: 66px; }
  .p-brand-text span { display: none; }
  .p-services { grid-template-columns: 1fr; }
  .p-feature-grid { grid-template-columns: 1fr; }
  .p-actions-row .p-btn { flex: 1 1 auto; }
  .p-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .p-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .p-callout { flex-direction: column; align-items: flex-start; }
  .p-callout .p-btn { width: 100%; }
}

@media (max-width: 560px) {
  .p-actions .p-btn { min-height: 40px; padding: 0 13px; font-size: 0.84rem; }
  .p-menu-btn { width: 38px; height: 38px; }
  .p-hero-actions .p-btn { width: 100%; }
  .p-points { flex-direction: column; gap: 8px; }
  .p-card-body { padding: 20px 20px 22px; }
  .p-step { padding: 24px 20px; }
}

@media (max-width: 360px) {
  .p-actions .p-btn--ghost { display: none; }
  .p-header-inner { gap: 8px; }
  .p-brand { gap: 8px; }
  .p-brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 20px; }
  .p-brand-text strong { font-size: 1rem; }
  .p-actions { gap: 6px; }
  .p-actions .p-btn { min-height: 38px; padding: 0 10px; font-size: 0.8rem; }
  .p-menu-btn { width: 34px; height: 34px; }
  .p-btn { padding: 10px 16px; line-height: 1.25; text-align: center; white-space: normal; }
  .p-eyebrow { gap: 8px; font-size: 0.66rem; letter-spacing: 0.1em; }
  .p-eyebrow::before { width: 20px; }
  .p-hero-title { font-size: 2rem; }
  .p-page-head h1 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .p-reveal { opacity: 1; transform: none; }
}
