/* ================================================================
   Terms of Service — terms.css
   ================================================================ */

.terms-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0.5rem 1rem 4rem;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.terms-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #1e40af 0%, #4f46e5 100%);
    border-radius: 18px;
    padding: 2rem 2rem 1.75rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.terms-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 30%;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.terms-hero-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: #fff;
    flex-shrink: 0; z-index: 1;
}

.terms-hero-title {
    font-size: 1.6rem; font-weight: 900;
    margin: 0 0 0.2rem; letter-spacing: -0.5px; z-index: 1;
}

.terms-hero-sub {
    font-size: 0.875rem; opacity: 0.85; margin: 0 0 0.2rem; z-index: 1;
}

.terms-hero-date {
    font-size: 0.78rem; opacity: 0.65; margin: 0; z-index: 1;
}

/* ── Summary card ─────────────────────────────────────────────── */
.terms-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #dbeafe;
    border: 1.5px solid #93c5fd;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #1e3a5f;
    line-height: 1.6;
}

.terms-summary-icon {
    font-size: 1.1rem; color: #2563eb;
    flex-shrink: 0; margin-top: 2px;
}

/* ── Table of contents ────────────────────────────────────────── */
.terms-toc {
    background: #f9fafb;
    border: 1.5px solid #f3f4f6;
    border-radius: 12px;
    padding: 1rem 1.25rem 1.1rem;
    margin-bottom: 2rem;
}

.terms-toc-title {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #9ca3af; margin-bottom: 0.65rem;
}

.terms-toc-list {
    margin: 0; padding-left: 1.25rem;
    columns: 2; column-gap: 2rem;
}

.terms-toc-list li {
    font-size: 0.82rem; margin-bottom: 0.3rem; break-inside: avoid;
}

.terms-toc-list a {
    color: #2563eb; text-decoration: none;
    font-weight: 500; transition: color 0.15s;
}

.terms-toc-list a:hover { color: #1e40af; text-decoration: underline; }

/* ── Sections ─────────────────────────────────────────────────── */
.terms-sections { display: flex; flex-direction: column; gap: 0; }

.terms-section {
    border-bottom: 1.5px solid #f3f4f6;
    padding: 2rem 0;
    scroll-margin-top: 80px;
}

.terms-section:last-child { border-bottom: none; }

.terms-section-header {
    display: flex; align-items: center;
    gap: 0.85rem; margin-bottom: 1.1rem;
}

.terms-section-num {
    font-size: 0.7rem; font-weight: 800;
    color: #93c5fd; background: #dbeafe;
    border-radius: 8px; padding: 0.25rem 0.55rem;
    letter-spacing: 0.05em; flex-shrink: 0;
}

.terms-section-header h2 {
    font-size: 1.05rem; font-weight: 800;
    color: #111827; margin: 0; letter-spacing: -0.2px;
}

.terms-section-body p {
    font-size: 0.875rem; color: #4b5563;
    line-height: 1.7; margin-bottom: 1rem;
}

.terms-section-body a { color: #2563eb; text-decoration: none; font-weight: 500; }
.terms-section-body a:hover { text-decoration: underline; }

/* ── Service grid ─────────────────────────────────────────────── */
.terms-service-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.85rem; margin-top: 0.75rem;
}

.terms-service-card {
    display: flex; align-items: flex-start; gap: 0.75rem;
    background: #f9fafb; border: 1.5px solid #f3f4f6;
    border-radius: 10px; padding: 0.85rem 1rem;
    transition: box-shadow 0.15s;
}

.terms-service-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.terms-service-icon {
    width: 36px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex-shrink: 0;
}

.terms-service-icon.indigo { background: #ede9fe; color: #4f46e5; }
.terms-service-icon.blue   { background: #dbeafe; color: #2563eb; }
.terms-service-icon.green  { background: #d1fae5; color: #059669; }
.terms-service-icon.purple { background: #f3e8ff; color: #7c3aed; }

.terms-service-title {
    font-size: 0.82rem; font-weight: 700;
    color: #111827; margin-bottom: 0.2rem;
}

.terms-service-desc {
    font-size: 0.78rem; color: #6b7280; line-height: 1.5;
}

/* ── Bullet list ──────────────────────────────────────────────── */
.terms-list {
    list-style: none; padding: 0; margin: 0.5rem 0 0.75rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}

.terms-list li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.875rem; color: #374151; line-height: 1.55;
}

.terms-list li i {
    color: #2563eb; font-size: 0.8rem;
    flex-shrink: 0; margin-top: 3px;
}

/* ── Billing cards ────────────────────────────────────────────── */
.terms-billing-cards {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.85rem; margin: 0.75rem 0;
}

.terms-billing-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    background: #f9fafb; border: 1.5px solid #f3f4f6;
    border-radius: 10px; padding: 0.85rem 1rem;
}

.terms-billing-item > i {
    font-size: 1.1rem; flex-shrink: 0; margin-top: 2px;
}

.terms-billing-item strong {
    font-size: 0.82rem; color: #111827; display: block; margin-bottom: 0.2rem;
}

.terms-billing-item p {
    font-size: 0.78rem; color: #6b7280;
    margin: 0; line-height: 1.5;
}

/* ── Highlight boxes ──────────────────────────────────────────── */
.terms-highlight {
    display: flex; align-items: flex-start; gap: 0.65rem;
    border-radius: 10px; padding: 0.85rem 1rem;
    font-size: 0.82rem; line-height: 1.55; margin-top: 0.75rem;
}

.terms-highlight i { font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }

.terms-highlight.blue {
    background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e3a5f;
}
.terms-highlight.blue i { color: #2563eb; }

.terms-highlight.amber {
    background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e;
}
.terms-highlight.amber i { color: #d97706; }

.terms-highlight.red {
    background: #fff5f5; border: 1.5px solid #fecaca; color: #991b1b;
}
.terms-highlight.red i { color: #dc2626; }

/* ── Contact row ──────────────────────────────────────────────── */
.terms-contact-row {
    display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 0.5rem;
}

.terms-contact-item {
    display: flex; align-items: center; gap: 0.65rem;
    background: #f9fafb; border: 1.5px solid #f3f4f6;
    border-radius: 10px; padding: 0.75rem 1rem;
    text-decoration: none; flex: 1; min-width: 180px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.terms-contact-item:hover {
    border-color: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}

.terms-contact-item > i {
    font-size: 1.1rem; color: #2563eb; flex-shrink: 0;
}

.terms-contact-label {
    font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: #9ca3af;
}

.terms-contact-value {
    font-size: 0.82rem; font-weight: 600; color: #111827;
}

/* ── Footer note ──────────────────────────────────────────────── */
.terms-footer-note {
    margin-top: 2.5rem; padding: 1rem 1.25rem;
    background: #f9fafb; border: 1.5px solid #f3f4f6;
    border-radius: 10px; font-size: 0.78rem;
    color: #9ca3af; text-align: center; line-height: 1.6;
}

.terms-footer-note i { color: #2563eb; }
.terms-footer-note a { color: #2563eb; text-decoration: none; font-weight: 500; }
.terms-footer-note a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .terms-hero          { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem; }
    .terms-toc-list      { columns: 1; }
    .terms-service-grid  { grid-template-columns: 1fr; }
    .terms-billing-cards { grid-template-columns: 1fr; }
    .terms-contact-row   { flex-direction: column; }
}
