/* =====================================================
   Terms of Service Page Styles
   (extends privacy.css shared layout components)
   ===================================================== */

/* ----- Hero override: warmer blue/indigo tone ----- */
.terms-hero-bg {
    background:
        radial-gradient(ellipse 65% 55% at 50% 0%, rgba(99,60,220,0.32) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 15% 85%, rgba(0,82,217,0.2) 0%, transparent 60%),
        linear-gradient(135deg, #0a0a0a 0%, #0d0f1e 100%) !important;
}

/* ----- Quick bar override ----- */
.terms-quick-bar {
    background: #0d0f1e;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ----- Acceptance Banner (top of content) ----- */
.terms-accept-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 13.5px;
    color: #78350f;
    line-height: 1.7;
}

.terms-accept-banner > i {
    font-size: 18px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 1px;
}

.terms-accept-banner p { margin: 0; }

/* ----- Acceptance Checklist (Section 01) ----- */
.terms-accept-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.terms-accept-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.55;
    transition: border-color 0.2s;
}

.terms-accept-item:hover { border-color: #d1d5db; }

.terms-accept-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0052d9;
    font-size: 13px;
    flex-shrink: 0;
}

/* ----- Service Cards Grid (Section 02) ----- */
.terms-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0;
}

.terms-service-card {
    padding: 20px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.terms-service-card:hover {
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.terms-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
}

.terms-svc-blue   { background: linear-gradient(135deg, #0052d9, #4f8ef7); }
.terms-svc-green  { background: linear-gradient(135deg, #059669, #34d399); }
.terms-svc-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.terms-svc-orange { background: linear-gradient(135deg, #d97706, #fbbf24); }

.terms-service-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 7px;
}

.terms-service-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ----- License Table (Section 03) ----- */
.terms-license-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.terms-license-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.terms-license-table thead tr { background: #f3f4f6; }

.terms-license-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.terms-license-table td {
    padding: 13px 16px;
    color: #4b5563;
    border-top: 1px solid #f3f4f6;
    line-height: 1.5;
    vertical-align: middle;
}

.terms-license-table tbody tr:hover td { background: #fafafa; }

.terms-license-table a {
    color: #0052d9;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 13px;
}

.terms-license-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
}

.terms-license-gpl { background: #d1fae5; color: #065f46; }
.terms-license-mit { background: #dbeafe; color: #1e40af; }

/* ----- Prohibited Grid (Section 04) ----- */
.terms-prohibited-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.terms-prohibited-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: #fff5f5;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.terms-prohibited-item:hover { border-color: #fca5a5; }

.terms-prohibited-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 14px;
    flex-shrink: 0;
}

.terms-prohibited-text { flex: 1; }

.terms-prohibited-text h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.terms-prohibited-text p {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ----- Disclaimer Banner ----- */
.terms-disclaimer-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #7f1d1d;
    color: #fef2f2;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.terms-disclaimer-banner i { font-size: 15px; color: #fca5a5; }
.terms-disclaimer-banner p { margin: 0; }

/* ----- Gray Icon ----- */
.terms-icon-gray { background: linear-gradient(135deg, #374151, #6b7280); }

/* ----- Liability List (Section 06) ----- */
.terms-liability-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.terms-liability-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.65;
    transition: border-color 0.2s;
}

.terms-liability-item:hover { border-color: #d1d5db; }

.terms-liability-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0052d9;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ----- Third-party Grid (Section 07) ----- */
.terms-thirds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.terms-thirds-item {
    padding: 16px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.terms-thirds-item:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.terms-thirds-item > i {
    font-size: 20px;
    color: #7c3aed;
    margin-bottom: 10px;
    display: block;
}

.terms-thirds-item h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.terms-thirds-item p {
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ----- Open Source Cards (Section 08) ----- */
.terms-opensource-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0;
}

.terms-opensource-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid;
}

.terms-os-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.terms-os-orange {
    background: #fffbeb;
    border-color: #fde68a;
}

.terms-os-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid;
}

.terms-os-green .terms-os-header {
    border-bottom-color: #bbf7d0;
    background: #dcfce7;
}

.terms-os-orange .terms-os-header {
    border-bottom-color: #fde68a;
    background: #fef9c3;
}

.terms-os-header i {
    font-size: 16px;
}

.terms-os-green .terms-os-header i { color: #16a34a; }
.terms-os-orange .terms-os-header i { color: #d97706; }

.terms-os-header h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0;
}

.terms-os-green .terms-os-header h4 { color: #14532d; }
.terms-os-orange .terms-os-header h4 { color: #78350f; }

.terms-opensource-card ul {
    list-style: none;
    padding: 12px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-opensource-card ul li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.6;
}

.terms-os-green ul li { color: #166534; }
.terms-os-orange ul li { color: #78350f; }

.terms-os-green ul li i.fa-check { color: #16a34a; font-size: 11px; margin-top: 3px; }
.terms-os-orange ul li i.fa-angle-right { color: #d97706; font-size: 11px; margin-top: 3px; }

/* ----- Changes List (Section 09) ----- */
.terms-changes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.terms-change-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.terms-change-item:hover {
    background: #fff;
    border-color: #d1d5db;
}

.terms-change-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.terms-change-blue   { background: linear-gradient(135deg, #0052d9, #4f8ef7); }
.terms-change-orange { background: linear-gradient(135deg, #d97706, #fbbf24); }
.terms-change-red    { background: linear-gradient(135deg, #dc2626, #f87171); }
.terms-change-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.terms-change-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.terms-change-item p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ----- Dispute Steps (Section 10) ----- */
.terms-dispute-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.terms-dispute-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #0052d9;
    border-radius: 0 12px 12px 0;
    transition: all 0.2s ease;
}

.terms-dispute-step:hover {
    background: #fff;
    border-left-color: #0047c2;
}

.terms-dispute-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0052d9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terms-dispute-content { flex: 1; }

.terms-dispute-content strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.terms-dispute-content p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 !important;
}

/* ----- Summary Box Override ----- */
.terms-summary-box {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
}

/* ----- Sidebar Related Links ----- */
.terms-sidebar-related {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 16px;
}

.terms-related-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 18px 10px;
    border-bottom: 1px solid #f3f4f6;
}

.terms-related-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f9fafb;
    transition: all 0.2s ease;
}

.terms-related-link:last-child { border-bottom: none; }

.terms-related-link:hover {
    background: #f9fafb;
    color: #0052d9;
}

.terms-related-link > i:first-child {
    font-size: 14px;
    color: #0052d9;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.terms-related-link > span { flex: 1; }

.terms-related-arrow {
    font-size: 11px;
    color: #9ca3af;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 900px) {
    .terms-sidebar-related { display: none; }
}

@media (max-width: 768px) {
    .terms-accept-list    { grid-template-columns: 1fr; }
    .terms-service-grid   { grid-template-columns: 1fr; }
    .terms-prohibited-grid { grid-template-columns: 1fr; }
    .terms-thirds-grid    { grid-template-columns: 1fr; }
    .terms-opensource-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .terms-license-table { font-size: 12px; }
    .terms-license-table th,
    .terms-license-table td { padding: 9px 11px; }
}
