/* =========================================================
   PC Driver Booster — TERMS OF USE
   Matches the refund policy layout/format closely.
========================================================= */

.terms-page {
    --terms-primary: #2563eb;
    --terms-primary-dark: #1d4ed8;
    --terms-primary-light: #eff6ff;
    --terms-dark: #0f172a;
    --terms-text: #334155;
    --terms-muted: #64748b;
    --terms-border: #e2e8f0;
    --terms-bg: #f8fafc;
    --terms-shadow: 0 8px 30px rgba(15, 23, 42, .06);
    margin: 0;
    padding: 0;
    background: var(--terms-bg);
    color: var(--terms-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    min-width: 0;
}

.terms-page,
.terms-page *,
.terms-page *::before,
.terms-page *::after {
    box-sizing: border-box;
}

.terms-page a {
    color: var(--terms-primary);
    text-decoration: none;
}

.terms-page a:focus-visible {
    outline: 2px solid var(--terms-primary);
    outline-offset: 3px;
}

.terms-container {
    width: min(100%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* =========================================================
   HERO
========================================================= */

.terms-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 20px 75px;
    background: radial-gradient(circle at 85% 20%, rgba(59,130,246,.22), transparent 34%),
                linear-gradient(135deg, #07152f 0%, #0f2b63 55%, #174ea6 100%);
    color: #fff;
}

.terms-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -220px;
    top: -250px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    pointer-events: none;
}

.terms-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    left: -160px;
    bottom: -180px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}

.terms-hero-content {
    max-width: 790px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.terms-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    color: #bfdbfe;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.terms-eyebrow::before,
.terms-eyebrow::after {
    content: none !important;
    display: none !important;
}

.terms-hero h1 {
    margin: 20px 0 18px;
    color: #fff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.terms-hero-content > p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.8;
}

.terms-hero-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 36px;
    color: #bfdbfe;
    font-size: 12px;
}

.terms-hero-details span {
    position: relative;
    display: inline-block;
    overflow-wrap: anywhere;
}

.terms-hero-details span + span {
    padding-left: 18px;
}

.terms-hero-details span + span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 18px;
    transform: translateY(-50%);
    background: rgba(255,255,255,.22);
}

/* =========================================================
   CONTENT LAYOUT
========================================================= */

.terms-content-section {
    padding: 65px 20px 90px;
}

.terms-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.terms-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
    min-width: 0;
}

.terms-sidebar-inner {
    padding: 17px;
    background: #fff;
    border: 1px solid var(--terms-border);
    border-radius: 16px;
    box-shadow: var(--terms-shadow);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.terms-sidebar-inner::-webkit-scrollbar {
    width: 6px;
}

.terms-sidebar-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.terms-sidebar-title {
    padding: 8px 10px 14px;
    color: var(--terms-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.terms-sidebar-inner a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border-radius: 7px;
    color: var(--terms-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    transition: background .2s ease, color .2s ease;
}

.terms-sidebar-inner a:hover {
    background: var(--terms-primary-light);
    color: var(--terms-primary);
}

.terms-sidebar-inner a.active {
    color: var(--terms-primary);
    font-weight: 700;
    background: var(--terms-primary-light);
}

.terms-sidebar-inner a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--terms-primary);
    border-radius: 0 4px 4px 0;
}

.terms-article {
    min-width: 0;
}

.terms-section {
    position: relative;
    margin-bottom: 28px;
    padding: 38px;
    background: #fff;
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    box-shadow: var(--terms-shadow);
    scroll-margin-top: 110px;
}

.terms-section:first-of-type {
    padding-top: 38px;
}

.terms-number {
    position: absolute;
    top: 27px;
    right: 28px;
    color: #dbeafe;
    font-size: 43px;
    line-height: 1;
    font-weight: 900;
}

.terms-section h2 {
    margin: 0 0 18px;
    max-width: 90%;
    color: var(--terms-dark);
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -.5px;
}

.terms-section h3 {
    margin: 38px 0 15px;
    color: var(--terms-dark);
    font-size: 20px;
}

.terms-section p {
    margin: 0 0 15px;
    color: var(--terms-muted);
    font-size: 14px;
    line-height: 1.8;
}

.terms-notice {
    display: flex;
    gap: 20px;
    padding: 35px;
    border: 1px solid #cfe2f8;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0f7ff, #f8fbff);
    margin-bottom: 28px;
}

.terms-notice-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--terms-primary);
    background: #dceeff;
    font-size: 23px;
}

.terms-notice span {
    color: var(--terms-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.terms-notice h2 {
    margin: 5px 0 12px;
    color: var(--terms-dark);
    font-size: 24px;
}

.terms-notice p {
    margin: 0;
    color: var(--terms-text);
}

.terms-info {
    display: flex;
    gap: 14px;
    margin: 25px 0;
    padding: 20px;
    border-radius: 10px;
    background: var(--terms-primary-light);
}

.terms-info i {
    margin-top: 4px;
    color: var(--terms-primary);
}

.terms-info p {
    margin: 0;
}

.definition-grid,
.rights-grid,
.misc-grid,
.trial-grid,
.change-grid,
.license-grid,
.contact-grid {
    display: grid;
    gap: 14px;
    margin: 25px 0;
}

.definition-grid,
.rights-grid,
.misc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.license-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.change-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
}

.definition-grid div,
.rights-grid div,
.misc-grid div,
.license-grid div,
.trial-grid div,
.change-grid div,
.contact-grid > * {
    padding: 20px;
    border: 1px solid var(--terms-border);
    border-radius: 12px;
    background: #fff;
}

.definition-grid strong,
.rights-grid strong,
.misc-grid strong,
.license-grid strong,
.trial-grid strong,
.change-grid span,
.contact-grid small {
    display: block;
    color: var(--terms-dark);
}

.definition-grid p,
.rights-grid p,
.misc-grid p,
.license-grid p,
.trial-grid span,
.change-grid p,
.contact-grid span {
    margin: 0;
    color: var(--terms-muted);
    font-size: 13px;
    line-height: 1.7;
}

.terms-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.terms-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 25px;
    color: var(--terms-muted);
    font-size: 14px;
    line-height: 1.7;
}

.terms-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--terms-primary);
    font-weight: 800;
}

.license-grid i,
.contact-highlight > i,
.linked-policy-grid a > i:first-child {
    color: var(--terms-primary);
}

.license-grid i {
    display: block;
    margin-bottom: 17px;
    font-size: 22px;
}

.terms-warning {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 25px 0;
    padding: 22px;
    border: 1px solid #f1dfaa;
    border-radius: 11px;
    color: #765716;
    background: #fff9e9;
}

.terms-warning i {
    margin-top: 3px;
    color: #c28b17;
}

.terms-warning strong {
    display: block;
    margin-bottom: 7px;
    color: #765716;
}

.terms-warning p {
    margin: 0;
    color: #80662f;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.payment-methods span {
    padding: 10px 15px;
    border: 1px solid var(--terms-border);
    border-radius: 30px;
    color: var(--terms-dark);
    background: #f8fbff;
    font-size: 12px;
    font-weight: 700;
}

.linked-policy-grid {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.linked-policy-grid a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--terms-border);
    border-radius: 12px;
    color: var(--terms-text);
    background: #fff;
}

.linked-policy-grid a > i:last-child {
    margin-left: auto;
    color: #9aabba;
}

.linked-policy-grid strong {
    display: block;
    color: var(--terms-dark);
}

.linked-policy-grid span {
    display: block;
    margin-top: 4px;
    color: var(--terms-muted);
    font-size: 12px;
}

.legal-box {
    padding: 30px;
    border-left: 4px solid var(--terms-primary);
    border-radius: 10px;
    background: #f6f9fd;
}

.legal-box strong {
    display: block;
    margin-bottom: 15px;
    color: var(--terms-dark);
    font-size: 13px;
    line-height: 1.7;
}

.contact-highlight {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin: 25px 0;
    padding: 23px;
    border-radius: 12px;
    background: var(--terms-primary-light);
}

.contact-highlight > i {
    font-size: 23px;
}

.contact-highlight strong {
    display: block;
    margin-bottom: 6px;
    color: var(--terms-dark);
}

.contact-highlight a,
.contact-highlight span {
    display: block;
    color: var(--terms-muted);
    font-size: 13px;
    line-height: 1.7;
}

.change-grid span {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    color: var(--terms-primary);
    background: var(--terms-primary-light);
    font-size: 11px;
    font-weight: 800;
}

.contact-grid > * {
    display: flex;
    gap: 13px;
    padding: 22px;
}

.contact-grid > * > i {
    color: var(--terms-primary);
    font-size: 19px;
}

.contact-grid small {
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.terms-final {
    margin-top: 70px;
    padding: 45px;
    border-radius: 18px;
    color: #fff;
    text-align: center;
    background: radial-gradient(circle at 50% 0, rgba(22,119,255,.3), transparent 45%), var(--terms-dark);
}

.terms-final > i {
    margin-bottom: 20px;
    color: #69b0ff;
    font-size: 35px;
}

.terms-final h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.terms-final p {
    max-width: 650px;
    margin: 0 auto 18px;
    color: #aabbd0;
    font-size: 14px;
    line-height: 1.8;
}

.terms-final strong {
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .terms-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .terms-sidebar {
        position: relative;
        top: 0;
    }

    .terms-sidebar-inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 15px;
    }

    .terms-sidebar-title {
        grid-column: 1 / -1;
    }

    .terms-section h2 {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .terms-hero {
        min-height: 420px;
        padding: 65px 0;
    }

    .terms-hero h1 {
        font-size: 50px;
    }
}

@media (max-width: 800px) {
    .license-grid,
    .change-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .terms-container,
    .terms-layout {
        width: min(100% - 28px, 1180px);
    }

    .terms-hero {
        padding: 75px 0;
    }

    .terms-hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .terms-content-section {
        padding: 60px 0 80px;
    }

    .terms-sidebar-inner {
        grid-template-columns: 1fr;
    }

    .terms-sidebar-title {
        grid-column: auto;
    }

    .terms-notice {
        padding: 25px;
    }

    .terms-section {
        padding: 55px 0;
    }

    .terms-section h2 {
        font-size: 29px;
    }

    .definition-grid,
    .trial-grid,
    .rights-grid,
    .misc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .terms-hero {
        min-height: auto;
        padding: 58px 0 62px;
    }

    .terms-hero h1 {
        margin-top: 18px;
        font-size: 40px;
        letter-spacing: -1px;
    }

    .terms-hero-content > p {
        font-size: 14px;
        line-height: 1.75;
    }

    .terms-hero-details {
        display: block;
        margin-top: 16px;
    }

    .terms-hero-details span {
        display: block;
        font-size: 12px;
    }

    .terms-hero-details span + span {
        margin-left: 0;
        padding-left: 0;
        margin-top: 3px;
    }

    .terms-hero-details span + span::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 36px;
    }

    .terms-notice {
        flex-direction: column;
    }

    .terms-section h2 {
        font-size: 26px;
    }

    .terms-final {
        padding: 30px 20px;
    }
}

@media (max-width: 420px) {
    .terms-hero {
        padding: 50px 0 55px;
    }

    .terms-hero h1 {
        font-size: 34px;
    }

    .terms-eyebrow {
        min-height: 31px;
        padding: 0 11px;
        font-size: 9px;
    }
}

/* =========================================================
   TERMS HERO META — force white text, clean divider
========================================================= */

.terms-hero-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 18px;
}

.terms-hero-details span {
    position: relative;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.terms-hero-details span + span {
    margin-left: 18px;
    padding-left: 18px;
}

.terms-hero-details span + span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 14px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 750px) {
    .terms-hero-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .terms-hero-details span + span {
        margin-left: 0;
        padding-left: 0;
    }

    .terms-hero-details span + span::before {
        display: none;
    }
}