/* Styling for the public legal pages (privacy policy, terms of service).

   The MARKUP and COPY of Views/Legal/Privacy.cshtml and Views/Legal/Terms.cshtml
   are attorney-reviewed and are the URLs registered with Twilio for A2P 10DLC
   brand vetting, so they are not touched. This file only restyles them into the
   public theme — the class names below are exactly the ones those views already
   emit, plus the .legal-content wrapper _PublicLayout puts around them.

   Reads as a document on a wash rather than as a marketing page: a logged-out
   visitor (or a carrier's crawler) is here to read text, so line length, type
   size, and heading hierarchy matter more than chrome. */

body.pb-public--doc {
    background: var(--pb-wash);
}

.legal-content {
    max-width: 820px;
    margin: 44px auto 64px;
    background: var(--pb-surface);
    border: 1px solid var(--pb-rule);
    border-top: 5px solid var(--pb-accent);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 48px 56px 52px;
}

.legal-content h1 {
    margin: 0 0 6px;
    color: var(--pb-chrome);
    font-family: var(--pb-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.legal-effective-date {
    margin: 0 0 34px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--pb-rule);
    color: var(--pb-muted);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-content h2 {
    margin: 40px 0 10px;
    color: var(--pb-chrome);
    font-family: var(--pb-display);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.legal-content h3 {
    margin: 26px 0 8px;
    color: var(--pb-chrome);
    font-family: var(--pb-body);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.legal-content section:first-of-type h2 {
    margin-top: 28px;
}

.legal-content p,
.legal-content li {
    color: var(--pb-ink);
    font-size: 1rem;
    line-height: 1.72;
}

.legal-content p {
    margin: 0 0 16px;
}

.legal-content ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.legal-content li {
    margin-bottom: 9px;
}

.legal-content li::marker {
    color: var(--pb-accent);
}

.legal-content strong {
    color: var(--pb-chrome);
}

/* A REAL, mechanical carrier-disclosure block (Twilio A2P requirements) — the
   SMS consent, frequency, rate, STOP/HELP and non-sharing language. Pulled out
   visually on purpose: a vetting reviewer should be able to find it at a glance
   without reading the whole policy. */
.legal-real-content {
    background: var(--pb-accent-soft);
    border: 1px solid rgba(60, 190, 220, 0.45);
    border-left: 4px solid var(--pb-accent);
    border-radius: 6px;
    padding: 22px 26px 8px;
    margin: 0 0 20px;
}

.legal-real-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 9px;
    background: var(--pb-accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Retained for completeness: the drafting-stage placeholder/banner treatments.
   Nothing emits them any more (the attorney-reviewed copy replaced every
   placeholder, and a test asserts the "pending legal review" banner never comes
   back), but the styles are cheap and keep the CSS honest about the markup
   contract. */
.legal-pending-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff6e0;
    border: 1px solid #f0c96b;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 28px;
    color: #6b4a00;
    font-weight: 700;
}

.legal-pending-icon {
    font-size: 1.1rem;
    line-height: 1.4;
}

.legal-placeholder {
    background: var(--pb-wash);
    border: 1px dashed var(--pb-neutral-dark);
    border-radius: 6px;
    padding: 16px 20px;
    color: var(--pb-muted);
    font-style: italic;
}

.legal-placeholder-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 9px;
    background: var(--pb-neutral-dark);
    color: #fff;
    border-radius: 4px;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .legal-content {
        margin: 24px 0 40px;
        padding: 30px 24px 34px;
        border-radius: 4px;
    }

    .legal-content h2 {
        margin-top: 30px;
    }
}
