/* ============================================================
   ALL-IN-ONE BRANDING SHOP
   TERMS & CONDITIONS PAGE STYLES

   Works with:
   - css/main.css
   - Existing dark / gold design system
   - Existing responsive hamburger navigation
   - Existing .container
   - Existing .section-label
   - Existing .btn classes
   - Existing footer styles

   Page-specific styles only.
============================================================ */


/* ============================================================
   LEGAL HERO
============================================================ */

.legal-hero {
    position: relative;
    padding: 105px 0 90px;
    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(215, 180, 106, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(215, 180, 106, 0.045),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--dark),
            var(--dark)
        );
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.legal-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: 7%;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(215, 180, 106, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.legal-hero::after {
    content: "";
    position: absolute;
    top: 75px;
    right: 14%;
    width: 145px;
    height: 145px;
    border: 1px solid rgba(215, 180, 106, 0.065);
    border-radius: 50%;
    box-shadow:
        0 0 70px rgba(215, 180, 106, 0.035);
    pointer-events: none;
}


/* ============================================================
   HERO CONTENT
============================================================ */

.legal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.legal-hero-content .section-label {
    margin-bottom: 18px;
}

.legal-hero-content h1 {
    margin: 0;
    max-width: 850px;
    color: var(--white);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -2.5px;
}

.legal-hero-content h1 span {
    color: var(--gold);
}

.legal-hero-content p {
    max-width: 680px;
    margin: 25px 0 0;
    color: var(--soft);
    font-size: 15px;
    line-height: 1.9;
}


/* ============================================================
   LAST UPDATED
============================================================ */

.legal-updated {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.legal-updated::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(215, 180, 106, 0.35);
}

.legal-updated span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.legal-updated strong {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* ============================================================
   LEGAL SECTION
============================================================ */

.legal-section {
    position: relative;
    padding: 90px 0 110px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(215, 180, 106, 0.025),
            transparent 32%
        ),
        var(--bg-2);
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}


/* ============================================================
   LEGAL NAVIGATION
============================================================ */

.legal-navigation {
    position: sticky;
    top: 25px;
    align-self: start;
}

.legal-nav-box {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.legal-nav-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--gold),
        transparent
    );
}

.legal-nav-label {
    display: block;
    margin-bottom: 15px;
    color: var(--gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.legal-nav-box a {
    position: relative;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
    transition:
        color var(--transition),
        padding-left var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.legal-nav-box a:last-child {
    border-bottom: none;
}

.legal-nav-box a:hover {
    padding-left: 10px;
    color: var(--gold);
    border-color: var(--border-gold);
    background: rgba(215, 180, 106, 0.025);
}


/* ============================================================
   LEGAL CONTENT
============================================================ */

.legal-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* ============================================================
   LEGAL CARD
============================================================ */

.legal-card {
    position: relative;
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 24px;
    padding: 34px 36px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 25px;
    overflow: hidden;
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.legal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--gold),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition);
}

.legal-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-gold);
    background:
        linear-gradient(
            145deg,
            rgba(215, 180, 106, 0.05),
            rgba(255, 255, 255, 0.014)
        );
    box-shadow: var(--shadow-md);
}

.legal-card:hover::before {
    opacity: 1;
}


/* ============================================================
   LEGAL CARD NUMBER
============================================================ */

.legal-card-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 14px;
    line-height: 1;
    background:
        radial-gradient(
            circle,
            rgba(215, 180, 106, 0.07),
            rgba(215, 180, 106, 0.015)
        );
    box-shadow:
        inset 0 0 20px rgba(215, 180, 106, 0.025);
    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.legal-card:hover .legal-card-number {
    transform: translateY(-2px);
    background:
        rgba(215, 180, 106, 0.08);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   LEGAL CARD TYPOGRAPHY
============================================================ */

.legal-card h2 {
    margin: 3px 0 16px;
    color: var(--white);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.legal-card p {
    margin: 0 0 15px;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.85;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card strong {
    color: var(--gold-light);
    font-weight: 800;
}


/* ============================================================
   LEGAL LIST
============================================================ */

.legal-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
}

.legal-card li {
    position: relative;
    padding-left: 23px;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.7;
}

.legal-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 900;
}


/* ============================================================
   LEGAL HIGHLIGHT
============================================================ */

.legal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 22px;
    padding: 18px 20px;
    background:
        linear-gradient(
            135deg,
            rgba(215, 180, 106, 0.07),
            rgba(215, 180, 106, 0.025)
        );
    border: 1px solid var(--border-gold);
    border-left: 3px solid var(--gold);
}

.legal-highlight strong {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.legal-highlight span {
    color: var(--soft);
    font-size: 12px;
    line-height: 1.7;
}


/* ============================================================
   LEGAL CONTACT BOX
============================================================ */

.legal-contact-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.legal-contact-box a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--soft);
    font-size: 11px;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.legal-contact-box a:hover {
    transform: translateY(-2px);
    color: var(--gold);
    background: rgba(215, 180, 106, 0.055);
    border-color: var(--border-gold);
}


/* ============================================================
   LEGAL CTA
============================================================ */

.legal-cta {
    padding: 80px 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
}

.legal-cta-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    padding: 48px;
    background:
        linear-gradient(
            135deg,
            rgba(215, 180, 106, 0.08),
            rgba(255, 255, 255, 0.018)
        );
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.legal-cta-box::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -120px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(215, 180, 106, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.legal-cta-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--gold),
        transparent
    );
}

.legal-cta-box > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.legal-cta-box .section-label {
    margin-bottom: 10px;
}

.legal-cta-box h2 {
    margin: 0;
    color: var(--white);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.legal-cta-box h2 span {
    color: var(--gold);
}

.legal-cta-box p {
    max-width: 580px;
    margin: 15px 0 0;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.8;
}


/* ============================================================
   CTA ACTIONS
============================================================ */

.legal-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.legal-cta-actions .btn {
    white-space: nowrap;
}

.legal-secondary-link {
    position: relative;
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-secondary-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.legal-secondary-link:hover {
    color: var(--gold-light);
}

.legal-secondary-link:hover::after {
    transform: scaleX(1);
}


/* ============================================================
   FOCUS STATES
============================================================ */

.legal-nav-box a:focus-visible,
.legal-contact-box a:focus-visible,
.legal-secondary-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}


/* ============================================================
   TARGETED LEGAL CARD
============================================================ */

.legal-card:target {
    border-color: var(--border-gold);
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(215, 180, 106, 0.04);
}


/* ============================================================
   RESPONSIVE — 1100px
============================================================ */

@media (max-width: 1100px) {

    .legal-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 35px;
    }

    .legal-card {
        padding: 30px;
    }

    .legal-cta-box {
        padding: 40px;
    }
}


/* ============================================================
   RESPONSIVE — 900px
============================================================ */

@media (max-width: 900px) {

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .legal-navigation {
        position: static;
    }

    .legal-nav-box {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
    }

    .legal-nav-label {
        grid-column: 1 / -1;
    }

    .legal-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-cta-actions {
        flex-wrap: wrap;
    }
}


/* ============================================================
   RESPONSIVE — 850px
   Works with hamburger navigation from main.css
============================================================ */

@media (max-width: 850px) {

    .legal-hero {
        padding: 85px 0 70px;
    }

    .legal-hero-content h1 {
        font-size: clamp(40px, 9vw, 62px);
        letter-spacing: -1.8px;
    }

    .legal-section {
        padding: 70px 0 85px;
    }

    .legal-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 18px;
    }

    .legal-card-number {
        width: 42px;
        height: 42px;
        font-size: 12px;
    }
}


/* ============================================================
   RESPONSIVE — 600px
============================================================ */

@media (max-width: 600px) {

    .legal-hero {
        padding: 70px 0 60px;
    }

    .legal-hero-content h1 {
        font-size: 40px;
        line-height: 1.04;
        letter-spacing: -1.2px;
    }

    .legal-hero-content p {
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.8;
    }

    .legal-updated {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-top: 24px;
        padding-top: 16px;
    }

    .legal-updated::before {
        margin-bottom: 2px;
    }

    .legal-section {
        padding: 60px 0 70px;
    }


    /* ON THIS PAGE */

    .legal-nav-box {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .legal-nav-label {
        grid-column: auto;
    }

    .legal-nav-box a {
        padding: 11px 3px;
    }


    /* LEGAL CARDS */

    .legal-content {
        gap: 14px;
    }

    .legal-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 25px 22px;
    }

    .legal-card-number {
        width: 40px;
        height: 40px;
    }

    .legal-card h2 {
        margin-top: 0;
        font-size: 25px;
    }

    .legal-card p {
        font-size: 12px;
        line-height: 1.8;
    }

    .legal-card li {
        font-size: 12px;
    }


    /* HIGHLIGHT */

    .legal-highlight {
        flex-direction: column;
        gap: 7px;
        padding: 16px;
    }


    /* CONTACT */

    .legal-contact-box {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-contact-box a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }


    /* CTA */

    .legal-cta {
        padding: 60px 0;
    }

    .legal-cta-box {
        padding: 30px 22px;
        gap: 30px;
    }

    .legal-cta-box h2 {
        font-size: 34px;
    }

    .legal-cta-box p {
        font-size: 12px;
    }

    .legal-cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .legal-cta-actions .btn {
        width: 100%;
    }

    .legal-secondary-link {
        align-self: center;
    }
}


/* ============================================================
   RESPONSIVE — 380px
============================================================ */

@media (max-width: 380px) {

    .legal-hero {
        padding: 60px 0 50px;
    }

    .legal-hero-content h1 {
        font-size: 35px;
    }

    .legal-hero-content p {
        font-size: 12px;
    }

    .legal-card {
        padding: 22px 18px;
    }

    .legal-card h2 {
        font-size: 23px;
    }

    .legal-cta-box {
        padding: 25px 18px;
    }

    .legal-cta-box h2 {
        font-size: 30px;
    }
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .legal-card,
    .legal-card-number,
    .legal-nav-box a,
    .legal-contact-box a,
    .legal-secondary-link::after {
        transition: none;
    }

    .legal-card:hover,
    .legal-contact-box a:hover,
    .legal-card:hover .legal-card-number {
        transform: none;
    }
}