/* ==========================================
   AIReady — Legal Pages Styles
   Shared across privacy, terms, refund, cookies
   ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
    background: #f5f7fa;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* --- Container --- */
.legal-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Nav --- */
.legal-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}

.legal-nav .legal-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #1e3a5f;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0d9488, #2d6da4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.logo-accent { color: #0d9488; }

.legal-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.legal-lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.legal-lang-btn:hover { color: #1e3a5f; }
.legal-lang-btn.active {
    color: #0d9488;
    background: #ccfbf1;
}

/* --- Main --- */
.legal-main {
    padding: 48px 0 80px;
    min-height: calc(100vh - 60px - 60px);
}

/* --- Content --- */
.legal-content h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 8px;
    line-height: 1.2;
}

.legal-updated {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 36px;
}

.legal-content section {
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f1fa;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-content h3 i {
    color: #0d9488;
    font-size: 14px;
}

.legal-content p {
    font-size: 15px;
    color: #334155;
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 8px 0 16px 20px;
    font-size: 15px;
    color: #334155;
}

.legal-content ul li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.legal-content a {
    color: #0d9488;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #0a7a70;
}

.legal-content code {
    background: #e8f1fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #1e3a5f;
}

/* --- Highlight box (refund guarantee) --- */
.legal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #ccfbf1, #e8f1fa);
    border: 1px solid #0d948833;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.legal-highlight > i {
    font-size: 28px;
    color: #0d9488;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-highlight strong {
    font-size: 17px;
    color: #1e3a5f;
    display: block;
    margin-bottom: 4px;
}

.legal-highlight p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 0;
}

/* --- Tables --- */
.legal-table-wrap {
    overflow-x: auto;
    margin: 12px 0 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-content thead {
    background: #1e3a5f;
    color: #fff;
}

.legal-content th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.legal-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.legal-content tbody tr:last-child td {
    border-bottom: none;
}

.legal-content tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* --- Footer --- */
.legal-footer {
    background: #1e3a5f;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.legal-footer a {
    color: #5eead4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-footer a:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .legal-container { padding: 0 16px; }
    .legal-content h1 { font-size: 26px; }
    .legal-content h2 { font-size: 18px; }
    .legal-main { padding: 32px 0 60px; }
    .legal-highlight { flex-direction: column; gap: 10px; padding: 16px; }
    .legal-content table { font-size: 13px; }
    .legal-content th,
    .legal-content td { padding: 8px 10px; }
}
