/* =========================================================
   TERMS & CONDITIONS
   Purple Leaf Creation
   ========================================================= */

:root {
    --tc-primary: #6b4f3a;
    --tc-primary-dark: #4f392a;
    --tc-secondary: #a67c52;
    --tc-bg: #faf8f5;
    --tc-white: #ffffff;
    --tc-text: #333333;
    --tc-muted: #777777;
    --tc-border: #e8e1da;
    --tc-light: #f4efe9;
    --tc-shadow: 0 10px 35px rgba(70, 50, 35, 0.08);
}

/* =========================
   PAGE
   ========================= */

.terms-page {
    background: var(--tc-bg);
    color: var(--tc-text);
    min-height: 100vh;
}

.terms-page *,
.terms-page *::before,
.terms-page *::after {
    box-sizing: border-box;
}

.terms-page a {
    color: var(--tc-primary);
    text-decoration: none;
    transition: 0.25s ease;
}

.terms-page a:hover {
    color: var(--tc-secondary);
}

/* =========================
   HERO
   ========================= */

.terms-hero {
    position: relative;

    min-height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    overflow: hidden;

    background: linear-gradient(rgba(53, 38, 27, 0.72), rgba(53, 38, 27, 0.72)),
        url("/images/terms-conditions-banner.jpg") center / cover no-repeat;
}

.terms-hero-content {
    position: relative;
    z-index: 2;

    max-width: 850px;
}

.terms-hero .hero-label {
    display: inline-block;

    margin-bottom: 14px;
    padding: 7px 18px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;

    color: #fff;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;

    line-height: 1.15;
}

.terms-hero p {
    max-width: 700px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.9);

    font-size: 17px;
    line-height: 1.8;
}

/* =========================
   BREADCRUMB
   ========================= */

.terms-breadcrumb {
    background: var(--tc-white);
    border-bottom: 1px solid var(--tc-border);
}

.terms-breadcrumb .container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.terms-breadcrumb a {
    font-size: 14px;
    font-weight: 500;
}

.terms-breadcrumb .separator {
    margin: 0 9px;
    color: #aaa;
}

.terms-breadcrumb .current {
    color: var(--tc-muted);
    font-size: 14px;
}

/* =========================
   CONTENT
   ========================= */

.terms-content {
    padding: 70px 0 90px;
}

.terms-layout {
    display: grid;

    grid-template-columns: 280px minmax(0, 1fr);

    gap: 45px;

    align-items: start;
}

/* =========================
   SIDEBAR
   ========================= */

.terms-sidebar {
    position: sticky;
    top: 100px;

    padding: 25px;

    background: var(--tc-white);

    border: 1px solid var(--tc-border);
    border-radius: 14px;

    box-shadow: var(--tc-shadow);
}

.terms-sidebar-title {
    margin-bottom: 18px;

    color: var(--tc-primary-dark);

    font-size: 18px;
    font-weight: 700;
}

.terms-sidebar ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.terms-sidebar li {
    margin: 0;
    padding: 0;
}

.terms-sidebar a {
    display: block;

    padding: 10px 12px;

    border-radius: 7px;

    color: #555;

    font-size: 14px;
    line-height: 1.5;
}

.terms-sidebar a:hover,
.terms-sidebar a.active {
    padding-left: 16px;

    background: var(--tc-light);

    color: var(--tc-primary);
}

/* =========================
   DOCUMENT
   ========================= */

.terms-document {
    padding: 45px;

    background: var(--tc-white);

    border: 1px solid var(--tc-border);
    border-radius: 16px;

    box-shadow: var(--tc-shadow);
}

.terms-document .last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 35px;
    padding: 8px 14px;

    background: var(--tc-light);

    border-radius: 50px;

    color: var(--tc-muted);

    font-size: 13px;
}

.terms-document .last-updated i {
    color: var(--tc-primary);
}

/* =========================
   SECTIONS
   ========================= */

.terms-section {
    scroll-margin-top: 110px;

    padding-bottom: 34px;
    margin-bottom: 34px;

    border-bottom: 1px solid var(--tc-border);
}

.terms-section:last-of-type {
    margin-bottom: 0;
}

.terms-section h2 {
    position: relative;

    margin: 0 0 18px;
    padding-left: 18px;

    color: var(--tc-primary-dark);

    font-size: 25px;
    font-weight: 700;

    line-height: 1.3;
}

.terms-section h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 4px;
    height: calc(100% - 8px);

    background: var(--tc-primary);

    border-radius: 5px;
}

.terms-section h3 {
    margin: 25px 0 12px;

    color: #49372a;

    font-size: 18px;
    font-weight: 650;
}

.terms-section p {
    margin: 0 0 15px;

    color: #555;

    font-size: 15px;
    line-height: 1.85;
}

.terms-section ul,
.terms-section ol {
    margin: 15px 0;
    padding-left: 24px;
}

.terms-section li {
    margin-bottom: 10px;

    color: #555;

    font-size: 15px;
    line-height: 1.75;
}

/* =========================
   INFORMATION BOX
   ========================= */

.terms-info-box {
    display: flex;

    gap: 16px;

    margin: 25px 0;
    padding: 20px;

    background: #faf7f3;

    border: 1px solid var(--tc-border);
    border-left: 4px solid var(--tc-primary);

    border-radius: 10px;
}

.terms-info-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--tc-light);

    border-radius: 50%;

    color: var(--tc-primary);

    font-size: 18px;
}

.terms-info-content h4 {
    margin: 0 0 6px;

    color: var(--tc-primary-dark);

    font-size: 16px;
    font-weight: 700;
}

.terms-info-content p {
    margin: 0;

    font-size: 14px;
}

/* =========================
   CONTACT
   ========================= */

.terms-contact-box {
    margin-top: 25px;
    padding: 25px;

    background: var(--tc-light);

    border-radius: 12px;
}

.terms-contact-box h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.terms-contact-item {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 12px;
}

.terms-contact-item:last-child {
    margin-bottom: 0;
}

.terms-contact-item i {
    width: 22px;

    color: var(--tc-primary);

    text-align: center;
}

.terms-contact-item a {
    font-size: 15px;
}

/* =========================
   LEGAL NOTE
   ========================= */

.terms-legal-note {
    display: flex;

    gap: 14px;

    margin-top: 35px;
    padding: 18px 20px;

    background: #faf7f3;

    border: 1px solid var(--tc-border);

    border-radius: 10px;
}

.terms-legal-note > i {
    flex: 0 0 auto;

    color: var(--tc-primary);

    font-size: 20px;
}

.terms-legal-note p {
    margin: 0;

    color: #666;

    font-size: 13px;
    line-height: 1.7;
}

/* =========================
   BACK TO TOP
   ========================= */

.terms-back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--tc-primary);
    color: #fff;

    font-size: 18px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;

    cursor: pointer;

    z-index: 999;
}

.terms-back-to-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.terms-back-to-top:hover {
    background: var(--tc-primary-dark);

    transform: translateY(-3px);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991px) {
    .terms-content {
        padding: 55px 0 70px;
    }

    .terms-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .terms-sidebar {
        position: relative;
        top: auto;
    }

    .terms-sidebar ul {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 5px;
    }

    .terms-document {
        padding: 35px;
    }
}

@media (max-width: 767px) {
    .terms-hero {
        min-height: 260px;

        padding: 60px 20px;
    }

    .terms-hero h1 {
        font-size: 36px;
    }

    .terms-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .terms-content {
        padding: 40px 0 55px;
    }

    .terms-sidebar {
        padding: 20px;
    }

    .terms-sidebar ul {
        grid-template-columns: 1fr;
    }

    .terms-document {
        padding: 25px 20px;

        border-radius: 12px;
    }

    .terms-section {
        scroll-margin-top: 80px;

        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .terms-section h2 {
        font-size: 21px;
    }

    .terms-section h3 {
        font-size: 17px;
    }

    .terms-section p,
    .terms-section li {
        font-size: 14px;
    }

    .terms-info-box {
        padding: 16px;
    }

    .terms-contact-box {
        padding: 20px;
    }

    .terms-back-to-top {
        right: 15px;
        bottom: 15px;

        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        min-height: 230px;
    }

    .terms-hero h1 {
        font-size: 30px;
    }

    .terms-hero p {
        font-size: 14px;
    }

    .terms-document {
        padding: 22px 16px;
    }

    .terms-section h2 {
        font-size: 20px;
    }

    .terms-sidebar {
        padding: 16px;
    }

    .terms-legal-note {
        padding: 15px;
    }
}
