/* terms.css – matching theme of index, contact, privacy */
:root {
    --primary: #0b57d0;
    --on-primary: #fff;
    --primary-container: #d3e3fd;
    --surface: #fff;
    --surface-container: #f0f4f9;
    --surface-container-high: #e9ebf0;
    --on-surface-default: #1b1c1d;
    --on-surface-de-emphasis: #444746;
    --outline: #747775;
    --stroke-default: #dcdfe5;
    --ff-sans: "Google Sans", "Roboto", sans-serif;
    --radius-m: 12px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #a8c7fa;
        --surface: #101218;
        --surface-container: #282a2c;
        --surface-container-high: #2a2b36;
        --on-surface-default: #fff;
        --on-surface-de-emphasis: #c4c7c5;
        --outline: #9a9b9c;
        --stroke-default: #2d2f38;
    }
}

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

body {
    font-family: var(--ff-sans);
    background: var(--surface-container);
    color: var(--on-surface-default);
    min-height: 100vh;
}

.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.widget-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.widget-header {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--stroke-default);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--on-surface-default);
    margin: 0;
}

.legal-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.legal-card {
    max-width: 800px;
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-m);
    border: 1px solid var(--stroke-default);
    padding: 2rem;
}

.legal-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.last-updated {
    font-size: 0.8rem;
    color: var(--on-surface-de-emphasis);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--stroke-default);
    padding-bottom: 0.75rem;
}

.legal-card h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--on-surface-default);
}

.legal-card p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--on-surface-de-emphasis);
}

.legal-card a {
    color: var(--primary);
    text-decoration: none;
}
.legal-card a:hover {
    text-decoration: underline;
}

/* Footer styles (same as other pages) */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--stroke-default);
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    color: var(--on-surface-de-emphasis);
}
.footer-links {
    display: flex;
    justify-content: center;
	font-size: 0.9rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--on-surface-de-emphasis);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}