/* ========================================
   TERMS & PRIVACY POLICY PAGES
   ======================================== */

/* Hero Section */
.terms-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    position: relative;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.terms-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.terms-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.terms-meta {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Content Section */
.terms-content {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.terms-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Loading State */
.loading-container {
    background: white;
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    border: 4px solid #f3f4f6;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Error State */
.error-container {
    background: white;
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border-radius: 50%;
    font-size: 2.5rem;
    color: #ef4444;
}

.error-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Document Content */
.terms-document {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.terms-document h1,
.terms-document h2,
.terms-document h3,
.terms-document h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.terms-document h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.terms-document h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    color: var(--primary-color);
}

.terms-document h3 {
    font-size: 1.4rem;
}

.terms-document h4 {
    font-size: 1.2rem;
}

.terms-document p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.terms-document ul,
.terms-document ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-primary);
}

.terms-document li {
    margin-bottom: 0.75rem;
}

.terms-document a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-document a:hover {
    color: var(--primary-dark);
}

.terms-document strong,
.terms-document b {
    color: var(--text-primary);
    font-weight: 600;
}

.terms-document em,
.terms-document i {
    font-style: italic;
}

.terms-document blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
}

.terms-document code {
    padding: 0.2rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.terms-document pre {
    padding: 1rem;
    background: #1f2937;
    color: #f9fafb;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.terms-document hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.terms-document table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.terms-document th,
.terms-document td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.terms-document th {
    background: var(--bg-secondary);
    font-weight: 600;
}

/* Sidebar */
.terms-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card h3 i {
    color: var(--primary-color);
}

.sidebar-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-links a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-links a.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-email:hover {
    color: var(--primary-dark);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Footer Email */
.footer-email {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .terms-wrapper {
        grid-template-columns: 1fr;
    }
    
    .terms-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 120px 0 40px;
    }
    
    .terms-title {
        font-size: 2rem;
    }
    
    .terms-meta {
        font-size: 1rem;
    }
    
    .terms-content {
        padding: 2rem 0;
    }
    
    .terms-document {
        padding: 2rem 1.5rem;
    }
    
    .terms-document h1 {
        font-size: 1.8rem;
    }
    
    .terms-document h2 {
        font-size: 1.5rem;
    }
    
    .terms-document h3 {
        font-size: 1.2rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
    
    .terms-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .terms-title {
        font-size: 1.75rem;
    }
    
    .terms-document {
        padding: 1.5rem 1rem;
    }
    
    .loading-container,
    .error-container {
        padding: 3rem 2rem;
    }
}

/* ========================================
   ACCOUNT DELETION PAGE STYLES
   ======================================== */

.alert-info,
.alert-warning {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-info {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.alert-info i,
.alert-warning i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.alert-info i {
    color: #2563eb;
}

.alert-warning i {
    color: #f59e0b;
}

.alert-info p,
.alert-warning p {
    margin: 0;
    flex: 1;
}

.alert-warning h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.alert-warning ul {
    margin: 0.5rem 0 0 1.5rem;
}

.email-template {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.email-template h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.email-template pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 0;
}

.email-template code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.data-list {
    background: #f9fafb;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.data-list h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.data-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.data-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.data-list li i {
    color: #10b981;
    font-size: 1.1rem;
}

.data-list.retention li i {
    color: #6b7280;
}

.timeline-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: white;
}

.timeline-table th,
.timeline-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.timeline-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-table td {
    color: var(--text-secondary);
}

.timeline-table strong {
    color: var(--primary-color);
    font-weight: 600;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-card h4 {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.step-time {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-box {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.final-note {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .timeline-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline-table thead {
        display: none;
    }
    
    .timeline-table tbody {
        display: block;
    }
    
    .timeline-table tr {
        display: block;
        margin-bottom: 1rem;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: var(--radius-md);
        padding: 1rem;
    }
    
    .timeline-table td {
        display: block;
        border: none;
        padding: 0.5rem 0;
        text-align: left;
    }
    
    .timeline-table td:first-child {
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }
    
    .timeline-table td:first-child::after {
        content: ':';
    }
    
    .data-list {
        padding: 1.5rem 1rem;
    }
    
    .data-list h3 {
        font-size: 1.1rem;
    }
    
    .data-list li {
        font-size: 0.95rem;
    }
    
    .contact-box {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin: 0 auto;
    }
    
    .alert-info,
    .alert-warning {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .alert-info i,
    .alert-warning i {
        margin: 0 auto 0.5rem;
    }
    
    .email-template {
        padding: 1rem;
    }
    
    .email-template pre {
        padding: 1rem;
        font-size: 0.85rem;
        overflow-x: auto;
    }
    
    .step-card {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .alert-info p strong,
    .alert-warning p strong {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .data-list {
        padding: 1rem;
    }
    
    .contact-box {
        padding: 1rem;
    }
    
    .email-template pre {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .process-steps {
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .terms-sidebar,
    .footer,
    .back-link {
        display: none !important;
    }
    
    .terms-hero {
        padding: 2rem 0;
        background: white;
    }
    
    .terms-content {
        padding: 1rem 0;
    }
    
    .terms-document {
        box-shadow: none;
        padding: 0;
    }
    
    .terms-wrapper {
        grid-template-columns: 1fr;
    }
}

