/* Help Centre & Legal Pages */

main {
    margin-top: 85px;
}

.eyebrow {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

/* ================================
   HELP CENTRE LAYOUT
   ================================ */

.help-outer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: grid;
    grid-template-columns: 252px 1fr;
    gap: 48px;
    align-items: start;
}

/* ================================
   SIDEBAR
   ================================ */

.help-sidebar {
    position: sticky;
    top: 105px;
}

.help-sidebar-inner {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 22px;
}

.help-sidebar-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--black);
    opacity: 0.45;
    margin: 0 0 10px;
}

.help-nav {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.help-nav-link:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
}

.help-nav-link.is-active {
    background: var(--secondary-color);
    color: var(--accent-color);
    font-weight: 700;
}

.help-nav-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.help-sidebar-divider {
    border: none;
    border-top: 1px solid var(--secondary-color);
    margin: 6px 0 14px;
}

.help-legal-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-legal-link {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--black);
    opacity: 0.65;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.help-legal-link:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
    opacity: 1;
}

/* ================================
   CONTENT AREA
   ================================ */

.help-content {
    min-width: 0;
}

.help-hero {
    margin-bottom: 52px;
}

.help-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 12px;
    line-height: 1.2;
}

.help-hero-subtitle {
    font-size: 1rem;
    color: var(--black);
    opacity: 0.65;
    line-height: 1.6;
    margin: 0 0 28px;
}

.help-search-wrap {
    position: relative;
    max-width: 480px;
}

.help-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.95rem;
    opacity: 0.4;
}

.help-search-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    font-family: var(--main-font);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border-color 0.2s;
}

.help-search-input:focus {
    border-color: var(--accent-color);
}

.help-search-input::placeholder {
    color: var(--black);
    opacity: 0.4;
}

.help-no-results {
    display: none;
    text-align: center;
    padding: 48px 0;
    color: var(--black);
    opacity: 0.45;
    font-size: 0.95rem;
}

/* ================================
   SECTIONS
   ================================ */

.help-section {
    margin-bottom: 64px;
    scroll-margin-top: 110px;
}

.help-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.help-section-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.help-section-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

/* ================================
   CARDS
   ================================ */

.help-card {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 26px 30px;
    margin-bottom: 14px;
}

.help-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 8px;
}

.help-card p {
    font-size: 0.93rem;
    color: var(--black);
    opacity: 0.72;
    line-height: 1.65;
    margin: 0 0 10px;
}

.help-card p:last-child {
    margin-bottom: 0;
}

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

.help-faq {
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
}

.help-faq-item {
    border-bottom: 1px solid var(--secondary-color);
}

.help-faq-item:last-child {
    border-bottom: none;
}

.help-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 26px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--main-font);
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--black);
    transition: background 0.2s;
}

.help-faq-btn:hover {
    background: var(--secondary-color);
}

.help-faq-btn[aria-expanded="true"] {
    color: var(--accent-color);
}

.help-faq-chevron {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: transform 0.28s ease, background 0.2s;
}

.help-faq-btn[aria-expanded="true"] .help-faq-chevron {
    transform: rotate(180deg);
    background: var(--accent-color);
    color: var(--white);
}

.help-faq-body {
    padding: 0 26px 20px;
    font-size: 0.9rem;
    color: var(--black);
    opacity: 0.72;
    line-height: 1.65;
    display: none;
}

.help-faq-body.is-open {
    display: block;
}

.help-faq-body p {
    margin: 0 0 10px;
}

.help-faq-body p:last-child {
    margin: 0;
}

.help-faq-body ul,
.help-faq-body ol {
    margin: 8px 0 10px 20px;
    padding: 0;
}

.help-faq-body li {
    margin-bottom: 6px;
}

/* ================================
   QUIZ TYPE CARDS
   ================================ */

.help-quiz-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.help-quiz-card {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 18px;
    padding: 22px;
    transition: border-color 0.2s, transform 0.2s;
}

.help-quiz-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.help-quiz-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.badge-mc {
    background: #e8f0fd;
    color: #2d57b0;
}

.badge-typed {
    background: #f0e8fd;
    color: var(--tertiary-color);
}

.badge-math {
    background: #e8fdf0;
    color: #1a7a45;
}

.help-quiz-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 8px;
}

.help-quiz-card p {
    font-size: 0.875rem;
    color: var(--black);
    opacity: 0.68;
    line-height: 1.55;
    margin: 0;
}

/* ================================
   SETTINGS FEATURE ROWS
   ================================ */

.help-settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-settings-item {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.help-settings-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.help-settings-text h4 {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 4px;
}

.help-settings-text p {
    font-size: 0.875rem;
    color: var(--black);
    opacity: 0.68;
    line-height: 1.55;
    margin: 0;
}

/* ================================
   TIP BOX
   ================================ */

.help-tip {
    background: #f2eafd;
    border: 1.5px solid var(--accent-color);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.help-tip-icon {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 1px;
}

.help-tip-text {
    font-size: 0.875rem;
    color: var(--black);
    opacity: 0.85;
    line-height: 1.6;
}

.help-tip-text strong {
    color: var(--accent-color);
    opacity: 1;
}

/* ================================
   STEPS LIST
   ================================ */

.help-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.help-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.help-step-text strong {
    display: block;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 3px;
}

.help-step-text span {
    font-size: 0.875rem;
    color: var(--black);
    opacity: 0.68;
    line-height: 1.55;
}

/* ================================
   CTA BANNER
   ================================ */

.help-cta {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 30px 32px;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.help-cta-text {
    flex: 1;
    min-width: 200px;
}

.help-cta-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 6px;
}

.help-cta-text p {
    font-size: 0.9rem;
    color: var(--black);
    opacity: 0.65;
    margin: 0;
}

.help-cta-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.help-cta-actions .primary-btn,
.help-cta-actions .secondary-btn {
    padding: 12px 22px;
    font-size: 0.9rem;
}

/* ================================
   LEGAL PAGES
   ================================ */

.legal-outer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 105px;
}

.legal-sidebar-inner {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 20px;
}

.legal-sidebar-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--black);
    opacity: 0.45;
    margin: 0 0 10px;
}

.legal-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--black);
    opacity: 0.68;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    line-height: 1.35;
}

.legal-toc-link:hover,
.legal-toc-link.is-active {
    background: var(--secondary-color);
    color: var(--accent-color);
    opacity: 1;
}

.legal-toc-link.is-active {
    font-weight: 700;
}

.legal-sidebar-divider {
    border: none;
    border-top: 1px solid var(--secondary-color);
    margin: 10px 0 12px;
}

.legal-other-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-other-link {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--black);
    opacity: 0.6;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.legal-other-link:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
    opacity: 1;
}

.legal-content {
    min-width: 0;
}

.legal-page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--secondary-color);
}

.legal-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 8px;
    line-height: 1.2;
}

.legal-last-updated {
    font-size: 0.875rem;
    color: var(--black);
    opacity: 0.45;
    margin: 0;
}

.legal-section {
    margin-bottom: 52px;
    scroll-margin-top: 110px;
}

.legal-section-num {
    color: var(--accent-color);
    font-weight: 700;
}

.legal-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
}

.legal-section p {
    font-size: 0.93rem;
    color: var(--black);
    opacity: 0.78;
    line-height: 1.75;
    margin: 0 0 14px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    margin: 8px 0 14px 24px;
    padding: 0;
}

.legal-section li {
    font-size: 0.93rem;
    color: var(--black);
    opacity: 0.78;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-section strong {
    font-weight: 700;
    color: var(--black);
    opacity: 1;
}

.legal-highlight {
    background: var(--secondary-color);
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 16px;
}

.legal-highlight p {
    margin: 0;
}

.legal-highlight a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.legal-highlight a:hover {
    text-decoration: underline;
}

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

@media (max-width: 960px) {
    .help-outer {
        grid-template-columns: 1fr;
        padding: 40px 32px 60px;
        gap: 28px;
    }

    .help-sidebar {
        position: static;
    }

    .help-sidebar-inner {
        padding: 18px;
    }

    .help-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 14px;
    }

    .help-nav-link {
        padding: 8px 14px;
        font-size: 0.83rem;
    }

    .help-legal-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .legal-outer {
        grid-template-columns: 1fr;
        padding: 40px 32px 60px;
        gap: 28px;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-toc {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .legal-toc-link {
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .help-quiz-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .help-outer,
    .legal-outer {
        padding: 32px 20px 48px;
    }

    .help-hero-title,
    .legal-page-title {
        font-size: 1.85rem;
    }

    .help-section-title {
        font-size: 1.3rem;
    }

    .help-card {
        padding: 20px 18px;
    }

    .help-cta {
        padding: 24px 22px;
    }

    .help-cta-actions {
        width: 100%;
        justify-content: center;
    }
}
