/* =========================================================
   KUNDALI DARPAN — LEGAL.CSS
   Privacy / Terms / Support

   Load AFTER /styles.css:

   <link rel="stylesheet" href="/styles.css">
   <link rel="stylesheet" href="/legal.css">
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

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


/*
   Prevent older legal-page rules from constraining <main>.
   The individual sections control their own width.
*/
.legal-page-body main {
    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   ACTIVE NAVIGATION
   ========================================================= */

.legal-page-body .desktop-nav a.active {
    color: #3f2b16;
    font-weight: 650;
}


/* =========================================================
   LEGAL / SUPPORT HERO
   ========================================================= */

.legal-hero {
    width: min(calc(100% - 40px), 980px);

    margin: 0 auto;

    padding:
        88px
        0
        50px;
}


.legal-hero-inner {
    max-width: 760px;
}


.legal-hero .section-kicker {
    display: inline-block;

    color: #95601c;

    font-size: 10px;
    font-weight: 750;

    letter-spacing: .17em;

    text-transform: uppercase;
}


.legal-hero h1 {
    margin:
        15px
        0
        18px;

    color: #2f2012;

    font-size:
        clamp(
            46px,
            6vw,
            68px
        );

    line-height: 1;

    letter-spacing: -0.055em;

    font-weight: 720;
}


.legal-hero p {
    max-width: 720px;

    margin: 0;

    color: #68533c;

    font-size: 17px;

    line-height: 1.7;
}


.legal-updated {
    display: inline-flex;

    align-items: center;

    margin-top: 24px;

    padding:
        8px
        12px;

    border:
        1px solid
        rgba(84, 53, 17, .11);

    border-radius: 9px;

    background:
        rgba(
            255,
            252,
            244,
            .38
        );

    color: #735e45;

    font-size: 11px;
}


/* =========================================================
   MAIN DOCUMENT WIDTH
   ========================================================= */

.legal-document-section {
    width:
        min(
            calc(100% - 40px),
            980px
        );

    margin:
        0
        auto;

    padding:
        0
        0
        110px;
}


/* =========================================================
   MAIN IVORY DOCUMENT CARD
   ========================================================= */

.legal-document {
    margin:
        0
        0
        18px;

    padding:
        44px
        46px;

    border:
        1px solid
        rgba(86, 54, 18, .10);

    border-radius: 24px;

    background:
        rgba(
            255,
            252,
            244,
            .80
        );

    box-shadow:
        0
        18px
        50px
        rgba(
            92,
            58,
            18,
            .07
        ),

        inset
        0
        1px
        0
        rgba(
            255,
            255,
            255,
            .86
        );

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   DOCUMENT TYPOGRAPHY
   ========================================================= */

.legal-document > p:first-child {
    margin-top: 0;
}


.legal-document .section-kicker {
    display: block;

    margin-bottom: 26px;
}


.legal-document h2 {
    margin:
        48px
        0
        16px;

    color: #342414;

    font-size: 24px;

    line-height: 1.3;

    letter-spacing: -0.03em;
}


.legal-document .section-kicker + h2 {
    margin-top: 0;
}


.legal-document h2:first-of-type {
    margin-top: 34px;
}


.legal-document h3 {
    margin:
        34px
        0
        14px;

    color: #382616;

    font-size: 18px;

    line-height: 1.35;

    letter-spacing: -0.02em;
}


.legal-document p {
    margin:
        0
        0
        18px;

    color: #68543c;

    font-size: 15.5px;

    line-height: 1.8;
}


.legal-document strong {
    color: #3b2917;

    font-weight: 680;
}


.legal-document ul,
.legal-document ol {
    margin:
        17px
        0
        23px;

    padding-left: 25px;
}


.legal-document li {
    margin:
        8px
        0;

    color: #68543c;

    font-size: 15.5px;

    line-height: 1.72;
}


/* =========================================================
   DOCUMENT LINKS
   ========================================================= */

.legal-document a {
    color: #95601c;

    text-decoration: none;

    border-bottom:
        1px solid
        rgba(
            149,
            96,
            28,
            .26
        );

    transition:
        color .2s ease,
        border-color .2s ease;
}


.legal-document a:hover {
    color: #68400e;

    border-bottom-color:
        rgba(
            104,
            64,
            14,
            .60
        );
}


/* =========================================================
   CONTACT BOX
   Privacy / Terms
   ========================================================= */

.contact-box {
    margin-top: 26px;

    padding:
        22px
        24px;

    border:
        1px solid
        rgba(95, 60, 18, .11);

    border-radius: 15px;

    background:
        rgba(
            235,
            196,
            126,
            .18
        );
}


.contact-box > strong {
    display: block;

    margin-bottom: 12px;

    color: #75490f;

    font-size: 16px;
}


.contact-box p {
    margin:
        7px
        0;
}


/* =========================================================
   SUPPORT HERO BUTTON
   ========================================================= */

.support-hero-actions {
    margin-top: 28px;
}


.support-hero-actions .button {
    min-width: 160px;
}


/* =========================================================
   SUPPORT CONTACT CARD
   ========================================================= */

.support-page-card {
    min-height: 215px;

    margin:
        0
        0
        18px;

    padding:
        38px
        44px;

    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    gap: 24px;

    align-items: center;

    border:
        1px solid
        rgba(86, 54, 18, .10);

    border-radius: 24px;

    background:
        rgba(
            255,
            252,
            244,
            .80
        );

    box-shadow:
        0
        18px
        50px
        rgba(
            92,
            58,
            18,
            .07
        ),

        inset
        0
        1px
        0
        rgba(
            255,
            255,
            255,
            .86
        );

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);
}


.support-card-icon {
    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(95, 60, 18, .11);

    border-radius: 17px;

    background:
        rgba(
            235,
            196,
            126,
            .30
        );

    color: #895618;

    font-size: 19px;
}


.support-page-card .section-kicker {
    display: block;

    margin-bottom: 8px;
}


.support-page-card h2 {
    margin:
        0
        0
        8px;

    color: #342414;

    font-size: 25px;

    letter-spacing: -0.03em;
}


.support-page-card p {
    margin:
        0
        0
        16px;

    color: #68543c;

    font-size: 15px;

    line-height: 1.7;
}


.support-contact-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #95601c;

    font-size: 14px;

    font-weight: 680;

    text-decoration: none;

    border-bottom:
        1px solid
        rgba(
            149,
            96,
            28,
            .24
        );
}


.support-contact-link:hover {
    color: #68400e;
}


/* =========================================================
   SUPPORT DOCUMENT CARDS
   ========================================================= */

.support-document {
    margin-top: 18px;
}


/* =========================================================
   PRIVACY / SECURITY NOTICE
   ========================================================= */

.support-notice {
    margin-top: 28px;

    padding:
        20px
        22px;

    border:
        1px solid
        rgba(105, 67, 18, .10);

    border-radius: 14px;

    background:
        rgba(
            230,
            183,
            96,
            .24
        );
}


.support-notice strong {
    display: block;

    margin-bottom: 7px;

    color: #75490f;

    font-size: 14px;
}


.support-notice p {
    margin: 0;

    color: #604b34;
}


/* =========================================================
   FAQ
   ========================================================= */

.support-faq {
    margin-top: 28px;

    border-top:
        1px solid
        rgba(84, 53, 17, .11);
}


.support-faq details {
    display: block;

    border-bottom:
        1px solid
        rgba(84, 53, 17, .11);
}


.support-faq summary {
    position: relative;

    display: block;

    padding:
        20px
        44px
        20px
        0;

    list-style: none;

    cursor: pointer;

    color: #49331d;

    font-size: 15px;

    font-weight: 670;

    line-height: 1.45;

    user-select: none;
}


.support-faq summary::-webkit-details-marker {
    display: none;
}


.support-faq summary::marker {
    content: "";
}


.support-faq summary::after {
    content: "+";

    position: absolute;

    right: 3px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #9b631c;

    font-size: 22px;

    font-weight: 500;
}


.support-faq details[open] summary::after {
    content: "−";
}


.faq-answer {
    padding:
        0
        36px
        20px
        0;
}


.faq-answer p {
    margin:
        0
        0
        12px;

    color: #68543c;

    font-size: 15px;

    line-height: 1.75;
}


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


.faq-answer a {
    color: #95601c;

    text-decoration: none;

    border-bottom:
        1px solid
        rgba(
            149,
            96,
            28,
            .25
        );
}


.faq-answer a:hover {
    color: #68400e;
}


/* =========================================================
   SUPPORT PRIVACY / TERMS CARDS
   ========================================================= */

.support-link-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-top: 18px;
}


.support-small-card {
    min-height: 185px;

    position: relative;

    display: flex;

    flex-direction: column;

    padding: 28px;

    border:
        1px solid
        rgba(86, 54, 18, .10);

    border-radius: 20px;

    background:
        rgba(
            255,
            252,
            244,
            .76
        );

    box-shadow:
        0
        14px
        38px
        rgba(
            92,
            58,
            18,
            .055
        );

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.support-small-card:hover {
    transform:
        translateY(-3px);

    background:
        rgba(
            255,
            253,
            247,
            .92
        );

    border-color:
        rgba(
            86,
            54,
            18,
            .17
        );

    box-shadow:
        0
        18px
        42px
        rgba(
            92,
            58,
            18,
            .085
        );
}


.support-small-label {
    margin-bottom: 16px;

    color: #95601c;

    font-size: 10px;

    font-weight: 760;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.support-small-card strong {
    color: #382616;

    font-size: 19px;
}


.support-small-card > span:nth-of-type(2) {
    max-width: 310px;

    margin-top: 9px;

    color: #69543c;

    font-size: 13px;

    line-height: 1.6;
}


.support-small-card b {
    position: absolute;

    right: 24px;

    bottom: 22px;

    color: #95601c;

    font-size: 18px;

    font-weight: 400;
}


/* =========================================================
   FOOTER ON LEGAL PAGES
   ========================================================= */

.legal-page-body .site-footer {
    margin-top: 0;
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

.support-contact-link:focus-visible,
.support-small-card:focus-visible,
.support-faq summary:focus-visible {
    outline:
        3px solid
        rgba(
            139,
            86,
            20,
            .40
        );

    outline-offset: 4px;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 780px) {

    .legal-hero {
        width:
            min(
                calc(100% - 32px),
                980px
            );

        padding:
            62px
            0
            40px;
    }


    .legal-hero h1 {
        font-size: 46px;
    }


    .legal-hero p {
        font-size: 16px;
    }


    .legal-document-section {
        width:
            min(
                calc(100% - 32px),
                980px
            );

        padding-bottom: 85px;
    }


    .legal-document {
        padding:
            30px
            24px;

        border-radius: 20px;
    }


    .legal-document h2 {
        margin-top: 40px;

        font-size: 21px;
    }


    .legal-document p,
    .legal-document li {
        font-size: 15px;
    }


    .support-page-card {
        grid-template-columns: 1fr;

        padding:
            30px
            24px;

        border-radius: 20px;
    }


    .support-link-grid {
        grid-template-columns: 1fr;
    }


    .support-small-card {
        min-height: 165px;
    }


    .faq-answer {
        padding-right: 10px;
    }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

    .legal-hero h1 {
        font-size: 41px;
    }


    .legal-document {
        padding:
            27px
            20px;
    }


    .support-page-card {
        padding:
            27px
            20px;
    }


    .support-faq summary {
        padding-right: 34px;
    }


    .support-small-card {
        padding: 24px;
    }

}