:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e5e7eb;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #0f172a;
    --accent-soft: #f1f5f9;
    --brand: #cba14e;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { direction: rtl; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.75; }

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

body.embed {
    background: #fff;
}
body.embed .container {
    max-width: 100%;
    padding: 16px 16px 32px;
}
body.embed .topbar,
body.embed .footer { display: none; }
body.embed .policy-card {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.lang-select {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 8px 34px 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.page-subtitle {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 28px;
}

.policy-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}

.policy-card h1 {
    font-size: 24px;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.policy-card h2 {
    font-size: 17px;
    font-weight: 650;
    margin: 28px 0 12px;
    letter-spacing: -0.01em;
    color: var(--accent);
}
.policy-card h2:first-of-type { margin-top: 8px; }
.policy-card p {
    margin: 0 0 12px;
    color: #1f2937;
}
.policy-card ul {
    margin: 0 0 16px;
    padding-left: 1.25rem;
    color: #1f2937;
}
html[dir="rtl"] .policy-card ul { padding-left: 0; padding-right: 1.25rem; }
.policy-card li { margin: 0 0 6px; }
.policy-card .last-update {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 40px;
}

@media (max-width: 640px) {
    .container { padding: 24px 16px 60px; }
    .policy-card { padding: 22px 18px; }
    .page-title { font-size: 26px; }
}
