@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
    min-height: 100vh;
    color: #07163e;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at 75% 0, #f7f9fd, #eaf0fa 65%);
}

:is(.privacy-shell, .terms-shell) {
    width: min(960px, 92vw);
    margin: 2rem auto;
    padding-bottom: 1rem;
}

:is(.privacy-card, .terms-card) {
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid #d6e0f1;
    border-radius: 16px;
    background: #fbfcfe;
    box-shadow: 0 8px 35px rgba(80, 110, 170, .08);
}

:is(.privacy-header, .terms-header) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d6deed;
}

:is(.privacy-header, .terms-header) img {
    width: min(200px, 100%);
    height: auto;
}

:is(.privacy-title, .terms-title) {
    margin: 0;
    color: #07163e;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.04em;
}

.updated-at {
    margin: .35rem 0 0;
    color: #536b94;
    font-size: .9rem;
}

:is(.privacy-section, .terms-section) + :is(.privacy-section, .terms-section) {
    margin-top: 1.5rem;
    padding-top: 1.3rem;
    border-top: 1px solid #d6deed;
}

:is(.privacy-section, .terms-section) h2 {
    margin: 0 0 .7rem;
    color: #07163e;
    font-size: 1.15rem;
    font-weight: 700;
}

:is(.privacy-section, .terms-section) :is(p, li) {
    margin-bottom: .5rem;
    color: #31466c;
    line-height: 1.7;
}

:is(.privacy-section, .terms-section) ul {
    margin-bottom: .5rem;
    padding-left: 1.3rem;
}

.privacy-grid {
    width: 100%;
    margin-top: .5rem;
    border-collapse: collapse;
}

.privacy-grid :is(th, td) {
    padding: .7rem;
    border: 1px solid #d6deed;
    color: #31466c;
    font-size: .9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-align: left;
    vertical-align: top;
}

.privacy-grid th {
    color: #07163e;
    background: #eaf0fa;
    font-weight: 700;
}

:is(.privacy-note, .terms-note) {
    margin-top: .7rem;
    padding: .85rem 1rem;
    border: 1px solid #d6e0f1;
    border-radius: 10px;
    color: #31466c;
    background: #f0f5ff;
    font-size: .9rem;
    line-height: 1.6;
}

:is(.privacy-actions, .terms-actions) {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

:is(.privacy-actions, .terms-actions) a {
    padding: .75rem 1rem;
    border: 1px solid #cbd6e9;
    border-radius: 10px;
    color: #1456ff;
    font-weight: 600;
    text-decoration: none;
}

:is(.privacy-actions, .terms-actions) a:hover {
    text-decoration: underline;
}

:is(.privacy-actions, .terms-actions) a.primary {
    border-color: #2451ed;
    color: #fff;
    background: #2451ed;
}

:is(.privacy-actions, .terms-actions) a.primary:hover {
    background: #1944d8;
}

@media (max-width: 700px) {
    :is(.privacy-shell, .terms-shell) { margin-top: 1rem; }
    :is(.privacy-header, .terms-header) { gap: 1rem; }
    :is(.privacy-header, .terms-header) img { width: 160px; }
}
