/* TidyFax legal pages.
   Layout follows the WhereToFax legal-page structure: editorial banner,
   long-form content card, and a sticky summary sidebar. */
.tf-legal-page {
    --tf-legal-ink: #14263c;
    --tf-legal-muted: #52677c;
    --tf-legal-line: #dce6ee;
    --tf-legal-blue: #285d91;
    --tf-legal-red: #a34d49;
    color: var(--tf-legal-ink);
    background: linear-gradient(180deg, #f3f7fa 0, #f8fafc 320px, #ffffff 100%);
    padding: 26px 0 clamp(64px, 7vw, 100px);
}
.tf-legal-page .tf-legal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(116deg, #122d47 4%, #24577d 64%, #397590 100%);
    color: #fff;
    border-radius: 26px;
    padding: clamp(30px, 5vw, 60px);
    box-shadow: 0 18px 42px rgba(18, 45, 71, .12);
}
.tf-legal-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -110px;
    top: -190px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 68%);
    z-index: -1;
    pointer-events: none;
}
.tf-legal-page .tf-legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 780;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d9edfa;
    margin-bottom: 17px;
}
.tf-legal-kicker i { color: #efc6b7; }
.tf-legal-page .tf-legal-hero h1 {
    font-size: clamp(2.15rem, 4.5vw, 3.6rem);
    font-weight: 810;
    letter-spacing: -.048em;
    line-height: 1.08;
    color: #fff;
    margin: 0 0 16px;
}
.tf-legal-page .tf-legal-hero p {
    max-width: 64ch;
    color: #e2edf5;
    font-size: clamp(.96rem, 1.22vw, 1.09rem);
    line-height: 1.7;
    margin: 0;
}
.tf-legal-page .tf-legal-meta {
    display: grid;
    gap: 12px;
    max-width: 310px;
    margin-left: auto;
}
.tf-legal-page .tf-legal-meta-item {
    padding: 15px 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 15px;
    backdrop-filter: blur(6px);
}
.tf-legal-meta-item span {
    display: block;
    color: #bed4e3;
    font-size: .73rem;
    letter-spacing: .045em;
    margin-bottom: 5px;
}
.tf-legal-meta-item strong { display:block; color:#fff; font-size: .98rem; }
.tf-legal-page .tf-legal-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    font-size: .77rem;
    margin: 0 0 16px;
    color: #6b7b8a;
}
.tf-legal-breadcrumb a { color:#285d91; text-decoration:none; font-weight:650; }
.tf-legal-breadcrumb a:hover { text-decoration:underline; }
.tf-legal-page .tf-legal-body { margin-top: 28px; }
.tf-legal-page .tf-legal-card,
.tf-legal-page .tf-legal-sidebar-card {
    background: #fff;
    border: 1px solid var(--tf-legal-line);
    border-radius: 22px;
    box-shadow: 0 10px 32px rgba(20,38,60,.045);
}
.tf-legal-page .tf-legal-card {
    padding: clamp(25px, 4vw, 49px);
}
.tf-legal-page .tf-legal-copy {
    max-width: 80ch;
    font-size: .96rem;
    line-height: 1.8;
    color: #40536a;
}
.tf-legal-copy > :first-child { margin-top:0; }
.tf-legal-copy > :last-child { margin-bottom:0; }
.tf-legal-copy p { margin: 0 0 1.18rem; }
.tf-legal-copy h2 {
    font-size: clamp(1.22rem, 1.65vw, 1.58rem);
    font-weight: 800;
    letter-spacing: -.022em;
    color: var(--tf-legal-ink);
    line-height: 1.3;
    padding-top: 25px;
    border-top: 1px solid #e5ebf1;
    margin: 31px 0 13px;
    scroll-margin-top: 110px;
}
.tf-legal-copy h2:first-of-type { border:0; padding-top:0; margin-top:23px; }
.tf-legal-copy h3 {
    font-size: 1.02rem;
    font-weight: 760;
    color: #213e56;
    margin: 20px 0 8px;
}
.tf-legal-copy strong { color: #183249; }
.tf-legal-copy a { color: #245c90; text-decoration:underline; text-underline-offset:3px; }
.tf-legal-copy a:hover, .tf-legal-copy a:focus-visible { color:var(--tf-legal-red); }
.tf-legal-copy ul { list-style:none; margin: 8px 0 22px; padding-left:0; }
.tf-legal-copy li { position:relative; padding-left:27px; margin: 0 0 11px; }
.tf-legal-copy li::before {
    content: "✓";
    position:absolute;
    left:0;top:0;
    color:#268579;
    font-weight:850;
}
.tf-legal-page .tf-legal-info {
    background: #f3f8fc;
    border: 1px solid #dce9f3;
    border-left: 4px solid var(--tf-legal-blue);
    padding: 18px 20px;
    border-radius: 13px;
    margin: 20px 0 26px;
}
.tf-legal-info p { margin:0; }
.tf-legal-page .tf-legal-warning {
    background: #fff8f6;
    border-color: #eedbd6;
    border-left-color:var(--tf-legal-red);
}
.tf-legal-page .tf-legal-sidebar { position: sticky; top: 94px; display:grid;gap:16px; }
.tf-legal-page .tf-legal-sidebar-card { padding: 24px; }
.tf-legal-page .tf-legal-sidebar-card h2 {
    display:flex;align-items:center;gap:10px;
    margin:0 0 17px;
    color:var(--tf-legal-ink);
    font-size:1.01rem;font-weight:800;letter-spacing:-.017em;
}
.tf-legal-sidebar-card h2 i { color:var(--tf-legal-blue); }
.tf-legal-page .tf-legal-fact { display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid #e8eef3;border-radius:12px;background:#f7f9fc;padding:12px 14px;margin-bottom:9px; }
.tf-legal-fact:last-child {margin-bottom:0;}
.tf-legal-fact span {color:#667c90;font-size:.78rem;font-weight:650;}
.tf-legal-fact strong {font-size:.79rem;text-align:right;color:#1b334a;font-weight:800;}
.tf-legal-fact.is-accent {background:#edf5fa;border-color:#d6e9f5;}
.tf-legal-page .tf-legal-sidebar-card p {color:var(--tf-legal-muted);line-height:1.7;font-size:.87rem;margin:0;}
.tf-legal-page .tf-legal-nav { display:grid;gap:5px; }
.tf-legal-nav a { display:block;font-size:.82rem;color:#476379;text-decoration:none;border-radius:9px;padding:7px 10px; }
.tf-legal-nav a:hover,.tf-legal-nav a:focus-visible {background:#eff5fa;color:#1d5685;}
.tf-legal-page .tf-legal-contact {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid var(--tf-legal-line);}
.tf-legal-contact .btn {font-size:.84rem;}

/* A legal-card link rule otherwise makes primary button text blue on blue.
   Keep the support CTA readable on Terms and Privacy, including hover/focus. */
.tf-legal-page .tf-legal-contact a.btn.btn-primary,
.tf-legal-page .tf-legal-contact a.btn.btn-primary:visited {
    background-color: #24577d;
    border-color: #24577d;
    color: #fff;
    text-decoration: none;
}
.tf-legal-page .tf-legal-contact a.btn.btn-primary:hover,
.tf-legal-page .tf-legal-contact a.btn.btn-primary:focus-visible {
    background-color: #183f60;
    border-color: #183f60;
    color: #fff;
    text-decoration: none;
}
.tf-legal-page .tf-legal-contact a.btn.btn-primary:focus-visible {
    outline: 2px solid #183f60;
    outline-offset: 3px;
}
@media (max-width: 991.98px) {
    .tf-legal-page .tf-legal-sidebar { position:static; }
    .tf-legal-page .tf-legal-meta {max-width:none; margin:10px 0 0;grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 575.98px) {
    .tf-legal-page {padding:12px 0 55px;}
    .tf-legal-page .tf-legal-hero {border-radius:18px;padding:26px 22px;}
    .tf-legal-page .tf-legal-meta {grid-template-columns:1fr;}
    .tf-legal-page .tf-legal-card {border-radius:17px;padding:24px 20px;}
    .tf-legal-page .tf-legal-sidebar-card {border-radius:17px;padding:20px;}
    .tf-legal-page .tf-legal-fact {gap:8px;}
}
