/* Legal Pages — Shared Styles (Hey Genie) */
/* Matches the warm cream editorial theme of the main website */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fbfaf7;
    color: #1c1d21;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */
.legal-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(251, 250, 247, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.legal-brand-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.legal-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #1c1d21;
    letter-spacing: -0.5px;
}

.brand-dot {
    color: #f43f5e;
}

.legal-back-link {
    font-size: 13px;
    color: #5c5e66;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-back-link:hover {
    color: #1c1d21;
}

/* ---- Main Content ---- */
.legal-main {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.legal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #1c1d21;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.legal-title-accent {
    color: #f43f5e;
}

.legal-date {
    font-size: 13px;
    color: #9ca0a8;
    margin-bottom: 56px;
}

/* ---- Content Sections ---- */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.legal-content section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1c1d21;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.legal-content section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 750;
    color: #1c1d21;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 14px;
    color: #5c5e66;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-content p + p {
    margin-top: 4px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-content li {
    font-size: 14px;
    color: #5c5e66;
    line-height: 1.65;
}

.legal-content li strong {
    color: #1c1d21;
}

.legal-content code {
    font-size: 12.5px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-content a {
    color: #f43f5e;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

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

/* ---- Callout Boxes ---- */
.legal-callout {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.65;
    margin-top: 12px;
    margin-bottom: 4px;
}

.legal-callout strong {
    display: inline;
}

.callout-important {
    background: rgba(244, 63, 94, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.12);
    color: #6b3040;
}

.callout-info {
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: #2c4a7c;
}

.callout-success {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
    color: #1a5c42;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: #78450d;
}

/* ---- Permission Cards ---- */
.perm-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.perm-card {
    padding: 16px 18px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.perm-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #f43f5e;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.perm-card p {
    font-size: 13px;
    color: #5c5e66;
    margin-bottom: 0;
}

/* ---- Refund Summary Cards ---- */
.refund-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.refund-summary-card {
    padding: 24px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.refund-summary-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.refund-summary-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 750;
    color: #1c1d21;
    margin-bottom: 6px;
}

.refund-summary-card p {
    font-size: 12px;
    color: #5c5e66;
    line-height: 1.55;
}

/* ---- Footer ---- */
.legal-footer {
    max-width: 780px;
    margin: 0 auto;
    padding: 28px 24px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.legal-footer-links a {
    font-size: 12px;
    color: #9ca0a8;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-footer-links a:hover {
    color: #1c1d21;
}

.legal-footer-copy {
    text-align: center;
    margin-top: 12px;
    font-size: 10px;
    color: #9ca0a8;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .legal-nav {
        padding: 14px 20px;
    }

    .legal-main {
        padding: 40px 18px 60px;
    }

    .legal-title {
        font-size: 36px;
    }

    .refund-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
