/* =========================================================
   TOP-RIGHT INFORMATION BUTTON
   ========================================================= */

.info-button {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #d1d5db;
    border-radius: 50%;

    background: #ffffff;
    color: #374151;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    font-style: italic;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.info-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.info-button:active {
    transform: scale(0.94);
}

.info-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}


/* =========================================================
   INFORMATION MODAL
   ========================================================= */

.info-modal {
    width: min(620px, calc(100vw - 28px));
    max-width: 620px;
    max-height: min(760px, calc(100vh - 32px));

    margin: auto;
    padding: 0;

    border: 0;
    border-radius: 18px;

    background: #ffffff;
    color: #111827;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.20);

    overflow: hidden;
}

.info-modal::backdrop {
    background: rgba(17, 24, 39, 0.52);
    backdrop-filter: blur(3px);
}


/* Header */

.info-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 22px 22px 18px;

    border-bottom: 1px solid #e5e7eb;
}

.info-modal-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-modal-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #111827;
    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}

.info-modal-header h2 {
    margin: 0;

    font-size: 21px;
    line-height: 1.2;

    color: #111827;
    letter-spacing: -0.02em;
}

.info-modal-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: -3px -3px 0 0;
    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #6b7280;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;
}

.info-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.info-modal-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}


/* Body */

.info-modal-body {
    padding: 20px 22px;

    max-height: calc(100vh - 190px);
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}

.info-intro {
    margin: 0 0 22px;

    color: #4b5563;
    font-size: 15px;
    line-height: 1.55;
}

.info-section {
    margin-bottom: 24px;
}

.info-section h3,
.privacy-box h3 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 750;
}

.info-section > p {
    margin: 0;

    color: #4b5563;

    font-size: 14px;
    line-height: 1.6;
}


/* Tool list */

.tool-list {
    display: grid;
    gap: 10px;
}

.tool-item {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 12px;

    border: 1px solid #e5e7eb;
    border-radius: 11px;

    background: #fafafa;
}

.tool-item-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #ffffff;
    border: 1px solid #e5e7eb;

    color: #374151;

    font-size: 14px;
    font-weight: 800;
}

.tool-item strong {
    display: block;

    margin-bottom: 2px;

    color: #111827;

    font-size: 14px;
}

.tool-item p {
    margin: 0;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.45;
}


/* Privacy */

.privacy-box {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 24px;
    padding: 15px;

    border: 1px solid #dbeafe;
    border-radius: 12px;

    background: #eff6ff;
}

.privacy-box-icon {
    flex: 0 0 auto;

    font-size: 20px;
    line-height: 1.2;
}

.privacy-box h3 {
    color: #1e3a8a;
}

.privacy-box p {
    margin: 0 0 8px;

    color: #374151;

    font-size: 13px;
    line-height: 1.55;
}

.privacy-box p:last-child {
    margin-bottom: 0;
}


/* Disclaimer */

.info-note {
    margin: 20px 0 0;
    padding-top: 18px;

    border-top: 1px solid #e5e7eb;

    color: #6b7280;

    font-size: 11px;
    line-height: 1.55;
}


/* Footer */

.info-modal-footer {
    display: flex;
    justify-content: flex-end;

    padding: 14px 22px;

    border-top: 1px solid #e5e7eb;

    background: #ffffff;
}

.info-modal-done {
    min-height: 40px;

    padding: 0 18px;

    border: 0;
    border-radius: 9px;

    background: #111827;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.info-modal-done:hover {
    background: #1f2937;
}

.info-modal-done:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .info-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);

        border-radius: 15px;
    }

    .info-modal-header {
        padding: 18px 17px 15px;
    }

    .info-modal-body {
        padding: 18px 17px;

        max-height: calc(100vh - 170px);
    }

    .info-modal-footer {
        padding: 12px 17px;
    }

    .info-modal-done {
        width: 100%;
    }

    .tool-item {
        padding: 11px;
    }

    .privacy-box {
        padding: 13px;
    }
}