/* ============================================================
   general.css — Contact, Terms, Privacy, Refund, About, FAQ
   body.public-page required on every page using this file
   ============================================================ */

/* ── Shell ───────────────────────────────────────────────── */
.gp-shell {
    display: flex;
    min-height: calc(100vh - 62px);
}

/* ── Left TOC sidebar ────────────────────────────────────── */
.gp-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #dbeafe;
    position: sticky;
    top: 62px;
    height: calc(100vh - 62px);
    overflow-y: auto;
    padding: 1.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #dbeafe #fff;
}
.gp-sidebar::-webkit-scrollbar       { width: 4px; }
.gp-sidebar::-webkit-scrollbar-track { background: #fff; }
.gp-sidebar::-webkit-scrollbar-thumb { background: #dbeafe; border-radius: 4px; }

.gp-sidebar-title {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    padding: 0 1.25rem .625rem;
    display: block;
}
.gp-sidebar-nav {
    display: flex;
    flex-direction: column;
}
.gp-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .55rem 1.25rem;
    font-size: .84rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
}
.gp-sidebar-nav a:hover  { color: #1e3a8a; background: #f8faff; border-left-color: #93c5fd; }
.gp-sidebar-nav a.active { color: #2563eb; background: #eff6ff; border-left-color: #2563eb; font-weight: 600; }
.gp-sidebar-nav a svg    { flex-shrink: 0; }

.gp-sidebar-divider {
    height: 1px;
    background: #f1f5f9;
    margin: .75rem 1.25rem;
}

/* ── Main content ────────────────────────────────────────── */
.gp-content {
    flex: 1;
    min-width: 0;
    background: #f8faff;
    display: flex;
    justify-content: center;
}

.gp-article {
    width: 100%;
    max-width: 780px;
    padding: 3rem 2.5rem 4rem;
}

/* Page hero strip */
.gp-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #dbeafe;
}
.gp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #2563eb;
    background: #dbeafe;
    padding: .2rem .625rem;
    border-radius: 4px;
    margin-bottom: .75rem;
}
.gp-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 .5rem;
    letter-spacing: -.02em;
}
.gp-hero-meta {
    font-size: .8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section headings */
.gp-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 80px;
}
.gp-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 .875rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #dbeafe;
}
.gp-section h3 {
    font-family: 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 1.25rem 0 .5rem;
}
.gp-section p {
    font-size: .9rem;
    color: #334155;
    line-height: 1.75;
    margin: 0 0 .875rem;
}
.gp-section ul, .gp-section ol {
    padding-left: 1.5rem;
    margin: 0 0 .875rem;
}
.gp-section li {
    font-size: .9rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: .375rem;
}
.gp-section a { color: #2563eb; text-decoration: none; }
.gp-section a:hover { text-decoration: underline; }
.gp-section strong { color: #1e3a8a; }

/* Highlight box */
.gp-highlight {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: .875rem;
    color: #1e40af;
    line-height: 1.65;
}
.gp-highlight.warn {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #d97706;
    color: #92400e;
}

/* Contact form */
.gp-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1.75rem;
}
.gp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gp-field { display: flex; flex-direction: column; gap: .4rem; }
.gp-field label { font-size: .8rem; font-weight: 600; color: #374151; }
.gp-field input,
.gp-field select,
.gp-field textarea {
    padding: .65rem .875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: .875rem;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}
.gp-field input:focus,
.gp-field select:focus,
.gp-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.gp-field input::placeholder,
.gp-field textarea::placeholder { color: #94a3b8; }

.gp-submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #1e3a8a;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .15s;
    align-self: flex-start;
}
.gp-submit:hover { background: #2563eb; }

/* Contact info cards */
.gp-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.gp-contact-card {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.gp-contact-card-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    margin-bottom: .25rem;
}
.gp-contact-card-icon.blue   { background: #dbeafe; }
.gp-contact-card-icon.green  { background: #dcfce7; }
.gp-contact-card-icon.purple { background: #ede9fe; }
.gp-contact-card-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.gp-contact-card-val   { font-size: .875rem; font-weight: 600; color: #1e3a8a; }
.gp-contact-card-sub   { font-size: .75rem; color: #94a3b8; }

/* FAQ accordion */
.gp-faq { display: flex; flex-direction: column; gap: .5rem; }
.gp-faq-item {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    overflow: hidden;
}
.gp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: #1e3a8a;
    text-align: left;
    transition: background .15s;
    gap: .75rem;
}
.gp-faq-q:hover { background: #f8faff; }
.gp-faq-q svg   { flex-shrink: 0; transition: transform .2s; color: #94a3b8; }
.gp-faq-item.open .gp-faq-q svg { transform: rotate(45deg); }
.gp-faq-a {
    display: none;
    padding: 0 1.25rem 1rem;
    font-size: .875rem;
    color: #334155;
    line-height: 1.7;
}
.gp-faq-item.open .gp-faq-a { display: block; }

/* Footer of article */
.gp-article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .8rem;
    color: #94a3b8;
}
.gp-article-footer a { color: #2563eb; text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .gp-sidebar { display: none; }
    .gp-article { padding: 2rem 1.25rem 3rem; }
    .gp-form-row { grid-template-columns: 1fr; }
}
body.public-page .tl-navbar .container {
    max-width: 100%;
    padding: 0 1.5rem;
}
body.public-page .tl-footer .container {
    max-width: 100%;
    padding: 0 1.5rem;
}