/* ==========================================================================
   Мирчев Студио — Copyright / licence page (license.html)
   Builds on the shared v1 design system in index-v1.css. Only page-specific
   parts live here. Scoped to body.v1-page-license.
   ========================================================================== */

/* ---------- Hero: compact, the text is the point of the page ---------- */
.v1-page-license .v1-license-hero {
    min-height: 46vh;
    min-height: 46svh;
}

.v1-page-license .v1-license-hero .v1-hero__content {
    padding-bottom: clamp(40px, 7vh, 72px);
}

.v1-page-license .v1-license-hero .v1-hero__lead {
    margin-bottom: 0 !important;
}

/* ---------- Layout: sticky summary + sections ---------- */
.v1-license__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

@media (min-width: 992px) {
    .v1-license__layout {
        grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
        gap: 72px;
    }

    .v1-license__summary {
        position: sticky;
        top: calc(var(--v1-header-h) + 32px);
    }
}

/* Summary card (dark, like the FAQ help card) */
.v1-license__summary {
    padding: 30px 28px;
    border-radius: var(--v1-radius-lg);
    background: var(--v1-ink);
    color: var(--v1-on-dark-muted);
    box-shadow: var(--v1-shadow-sm);
}

.v1-license__summary-title {
    margin: 0 0 20px;
    font-family: var(--v1-serif);
    font-size: clamp(1.55rem, 1.4rem + .5vw, 1.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--v1-on-dark);
    text-wrap: balance;
}

.v1-license__summary-list {
    display: grid;
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    font-size: .97rem;
    line-height: 1.55;
}

.v1-license__summary-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.v1-license__summary-list .v1-icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--v1-gold);
}

.v1-license__summary-btn {
    width: 100%;
}

.v1-license__updated {
    margin: 18px 0 0 !important;
    font-size: .85rem;
    color: var(--v1-on-dark-muted);
}

/* ---------- Sections ---------- */
.v1-license__body {
    display: grid;
    gap: 0;
}

.v1-terms {
    padding: 36px 0;
    border-top: 1px solid var(--v1-line);
}

.v1-terms:first-child {
    padding-top: 0;
    border-top: 0;
}

.v1-terms:last-child {
    padding-bottom: 0;
}

.v1-terms__title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 16px;
    font-family: var(--v1-serif);
    font-size: clamp(1.6rem, 1.35rem + .9vw, 2.1rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--v1-text);
}

.v1-terms__num {
    flex: none;
    font-size: .8em;
    color: var(--v1-gold-text);
}

.v1-terms p {
    max-width: 68ch;
    color: var(--v1-muted);
}

.v1-terms p:last-child {
    margin-bottom: 0;
}

.v1-terms p a:not(.v1-link) {
    color: var(--v1-gold-text);
    font-weight: 600;
    text-underline-offset: 3px;
}

.v1-terms__list {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding-left: 1.2em;
    list-style: disc;
    max-width: 68ch;
    color: var(--v1-muted);
}

.v1-terms__list li::marker,
.v1-rule li::marker {
    color: var(--v1-gold-text);
}

.v1-terms__file {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--v1-sand);
    color: var(--v1-text);
    font-size: .92em;
    white-space: nowrap;
}

.v1-terms__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 20px;
}

.v1-terms__more {
    font-size: .97rem;
}

/* Credit line, shown as a quote block */
.v1-terms__credit {
    margin-top: 6px;
    padding: 18px 22px;
    border-left: 3px solid var(--v1-gold);
    border-radius: 0 var(--v1-radius) var(--v1-radius) 0;
    background: var(--v1-sand);
    font-family: var(--v1-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v1-text) !important;
}

/* ---------- Allowed / not allowed cards ---------- */
.v1-terms__compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .v1-terms__compare {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

.v1-rule {
    padding: 24px;
    border: 1px solid var(--v1-line);
    border-radius: var(--v1-radius-lg);
    background: var(--v1-paper);
}

.v1-rule--yes {
    border-color: rgba(234, 166, 54, .55);
}

.v1-rule__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: var(--v1-sans);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--v1-text);
}

.v1-rule__icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.v1-rule__icon .v1-icon {
    width: 16px;
    height: 16px;
}

.v1-rule--yes .v1-rule__icon {
    background: var(--v1-gold);
    color: var(--v1-ink);
}

.v1-rule--no .v1-rule__icon {
    background: var(--v1-ink);
    color: var(--v1-on-dark);
}

.v1-rule ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 1.1em;
    list-style: disc;
    color: var(--v1-muted);
    font-size: .98rem;
}

@media (max-width: 575.98px) {
    .v1-license__summary { padding: 24px 22px; }

    .v1-terms { padding: 30px 0; }

    .v1-terms__actions .v1-btn { width: 100%; }

    .v1-rule { padding: 20px; }

    .v1-terms__credit { font-size: 1.15rem; padding: 16px 18px; }
}

/* Keep the hero sentence from leaving a single word on the last line */
.v1-page-license .v1-license-hero .v1-hero__lead {
    text-wrap: balance;
}
