/* Footer with Document Number */
.branding-footer {
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
    color: rgba(0, 0, 0, 0.5);
}

.branding-footer .document-number {
    font-weight: bold;
}

/* Full Page Wrapper */
.document-wrapper {
    position: relative;
    width: 90%;  /* Use 90% width for more flexibility */
    max-width: 800px;
    min-height: 90vh; /* Ensures the document doesn't overflow */
    background-color: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Agreement Footer with Effective Date */
.effective-date {
    text-align: center;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

/* Last Updated line*/
.last-updated {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

/* Metadata section */
.meta-data {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

/* Partnership Overview Section */
.partner-brand {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 12px;
}

.partner-brand strong {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.partnership-overview {
    margin-top: 30px;
}

/* Recipient Section */
.recipient {
    margin-top: 30px;
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.recipient .communication-channel {
    font-style: italic;
    color: #555;
}

.recipient div {
    margin-bottom: 10px;
}

.special-hyperlink {
    color: rgb(61, 61, 61);
}

/* Subtitle Section */
.subtitle {
    font-size: 24px;
    text-align: center;
    margin-top: 10px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.7);
}

/* Title Section */
.title {
    font-size: 40px;
    text-align: center;
    margin-top: 0;
    font-weight: bold;
}

.trademarking {
    font-size: 0.3em;
    vertical-align: 1.7em;
}

.trademark-r {
    font-size: 0.6em;
    vertical-align: 0.6em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Stacking the metadata elements vertically on smaller screens */
    .meta-data {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-data div {
        margin-bottom: 10px;
    }

    /* Reduce font size for the title on small screens */
    .title {
        font-size: 32px;
    }

    /* Reduce padding for the document wrapper */
    .document-wrapper {
        padding: 20px;
    }

    /* Reduce font size for footer */
    .branding-footer {
        font-size: 12px;
    }

    /* Adjust partner grid for small screens */
    .partner-grid {
        grid-template-columns: 1fr 1fr;  /* Display 2 items per row */
    }

    .partner-brand {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Further reduce font sizes and padding for very small screens */
    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 20px;
    }

    .meta-data {
        font-size: 12px;
    }

    .partner-brand {
        font-size: 10px;
        padding: 8px;
    }

    .branding-footer {
        font-size: 10px;
    }
}

#agreements .agreement-alt {
    background-color: rgb(247, 210, 142);
    border: 2px solid rgb(63, 43, 7);
    padding: 20px;
}

#agreements .agreement-details {
    background-color: lightyellow;
    padding: 20px;
}

#agreements .agreement-green {
    background-color: lightgreen;
    border: 2px solid forestgreen;
    padding: 20px;
}

#agreements .agreement-yellow {
    background-color: lightyellow;
    padding: 20px;
}

/* Body Style */
body {
    font-family: Merriweather, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh; /* Adjust to prevent cut-off */
    background-color: #f5f5f5;
}

h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

h4 {
    text-align: center;
}

mark {
    background-color: rgb(253, 185, 39);
}