/* «Угода користувача» (agreement.html): one page, a side menu of three sections
   (privacy, offer, contacts) and the chosen text next to it — js/pages/agreement.js
   switches the panels without reloading. The text itself reuses privacy.css's
   .legal-section / .legal-updated. */

.agr-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }

.agr-nav {
    position: sticky; top: calc(var(--sticky-top, 70px) + 70px);
    display: flex; flex-direction: column; gap: 2px;
    border-left: 1px solid var(--border-light);
}
.agr-nav a {
    display: block; padding: 11px 16px; margin-left: -1px;
    border-left: 3px solid transparent;
    color: var(--text-secondary); font-size: 15px; line-height: 1.35;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.agr-nav a[hidden] { display: none; }
.agr-nav a.is-active { color: var(--accent); font-weight: 600; border-left-color: var(--accent); background: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) {
    .agr-nav a:not(.is-active):hover { color: var(--text-main); border-left-color: var(--border-light); }
}

.agr-sample { white-space: nowrap; font-weight: 600; color: var(--text-main); }
.agr-seal-inline { display: inline-flex; vertical-align: middle; }
.agr-seal-inline .verified-check { margin-left: 7px; top: -1px; }
.agr-panel[hidden] { display: none; }
.agr-h1-sec { display: none; }
.agr-title { font-size: clamp(20px, 1vw + 16px, 28px); font-weight: 600; color: var(--text-main); margin: 0 0 12px; }
.agr-lead { color: var(--text-main); font-size: 16px; font-weight: 600; line-height: 1.55; max-width: 700px; margin: 0 0 22px; }
.agr-panel .legal-updated { margin-bottom: 28px; }
.agr-panel .legal-section { max-width: 820px; }

.agr-contacts { display: grid; gap: 14px; max-width: 520px; }
.agr-contact {
    display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
    border: 1px solid var(--border-light); border-radius: 14px; background: #fff;
}
.agr-contact > i { width: 22px; margin-top: 3px; text-align: center; font-size: 18px; color: var(--accent); flex-shrink: 0; }
.agr-contact small { display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }
.agr-contact span, .agr-contact a { font-size: 16px; color: var(--text-main); }
.agr-contact a { text-decoration: none; }
.agr-socials { display: flex; gap: 12px; margin-top: 4px; }
.agr-socials a {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--border-light); color: var(--accent); font-size: 18px;
}
@media (hover: hover) and (pointer: fine) {
    .agr-contact a:hover { color: var(--accent); }
    .agr-socials a:hover { background: var(--accent-soft); }
}

@media (max-width: 900px) {
    .agr-layout { grid-template-columns: 1fr; gap: 24px; }
    /* phones: the sections are chosen in the side menu (Угода користувача > ...), the page shows only the open one */
    .agr-nav { display: none; }
    /* the page title is the open section itself (the rest is in the breadcrumbs), so its own heading would repeat it */
    .agr-h1-all { display: none; }
    .agr-h1-sec { display: inline; }
    .agr-panel > .agr-title { display: none; }
}
